In this course you can always access the R containers: https://vm-manage.oit.duke.edu/containers
But for those of you who wish to, you can download R
and RStudio
“locally” to your own computer. Below are some resources to do this.
There are 3 things to download: (1) the R programming language, (2) the RStudio integrated development environment (IDE) and (3) Git
By the end of today you will…
glimpse()
, count()
, group_by()
and summarize()
Open RStudio: https://vm-manage.oit.duke.edu/containers
Console: Use R
as a calculator by typing the following in the console:
3 * 5 + 10
x <- 3
x + x^2
x <- 1:10
x*7
Click on the green CODE button, select SSH (this might already be selected by default). Click on the clipboard/square icon to copy the repo URL. Next, in RStudio, navigate File
> New Project
> Version Control
> Git
> paste the SSH URL > Create Project
Note: if you have already done this, you do NOT need to do this again
credentials::ssh_setup_github()
into your console.Configure git by running the following code in the terminal. Fill in your GitHub username and the email address associated with your GitHub account.
git config --global user.name 'username'
git config --global user.email 'emailaddress'
You should not have to do this every time.
ae02
will not be graded.