R and RStudio Set Up

R and RStudio

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 plyr package for data aggregation, here is one way to do it in the R console (there are others).

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

We will use this package soon, so go ahead and install it!

Another package we will use soon is knitr, which facilitates the creation of dynamic reports. You can install it in the same way. install.packages("knitr", 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.