Installing packages

You can install any package available on the comprehensive R archive network (CRAN). To do so, just click packages on the lower right panel of your studio and click on install packages, then follow the instructions.

As you will notice, any package installed will be added to the R/library/ folder in your home directory, meaning that you are the only user on the server that can deploy this package. Others will have to go through the same installation procedure.

WARNING: Packages that you want to use from a public or private web service on crunch need to be installed system-wide! So you have to contact the admin team to get this done.

Installing non-standard packages
Packages that are not on CRAN can be installed as well. For example, RGoogleAnalytics (which is now installed system-wide on crunch) is not available from CRAN, but only via Google Code. To install such a package locally for your user, you can do the following

download.file("http://r-google-analytics.googlecode.com/files/RGoogleAnalytics_1.1.tar.gz", destfile="~/RGoogleAnalytics_1.1.tar.gz") install.packages("~/RGoogleAnalytics_1.1.tar.gz", repos = NULL)