Skip to content
Florian Schneider edited this page Oct 7, 2014 · 1 revision

setting up R on workstation

installation of R

Use apt-get to install R:

sudo apt-get update
sudo apt-get install rbase

After installation, the program is located at /usr/lib/R/.

installation of packages

In R, each user on the computer keeps his own library of packages. It is easy to install them from within R with the prompt

> install.packages("packagename")

However, if R is used by multiple users who share the same code, it is advisable to install the package into the global library. This can only be done with superuser rights. So first start R from the Terminal with the prompt:

$ sudo R

The terminal will ask for a password before R starts. Then, packages can be installed into the global library by specifying it's location

> install.packages(c("foreach", "doSNOW"), lib="/usr/lib/R/library/")

R server

There is a very easy way to use a remote computers power for calculations. R Studio provides a server option that waits for input from clients

Clone this wiki locally