If you are still not sure how to get started with R, Rstudio, and tidyverse, see if the following information helps. It was written by Dr. Jennifer (Jenny) Bryan for her STAT 545 class, and in addition to the following start-up information, you may want to bookmark her class page as a reference throughout the rest of the semester!

R and RStudio

If you have a pre-existing installation of R and/or RStudio, we highly recommend that you reinstall both and get as current as possible. It can be considerably harder to run old software than new.

Testing testing

Add-on packages

R is an extensible system and many people share useful code they have developed as a package via CRAN and GitHub. To install a package from CRAN, for example the dplyr package for data manipulation, here is one way to do it in the R console (there are others).

install.packages("dplyr", dependencies = TRUE)

By including dependencies = TRUE, we are being explicit and extra-careful to install any additional packages the target package, dplyr in the example above, needs to have around.

You could use the above method to install the following packages, all of which we will use:

Note that if you install the tidyverse, it includes many of the other packages above!

install.packages('tidyverse', dependencies = TRUE)

Further resources

The above will get your basic setup ready but here are some links if you are interested in reading a bit further.