-
Notifications
You must be signed in to change notification settings - Fork 1
setupR
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/.
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/")
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
Biodicée Docs by Sonia Kéfi & Vincent Devictor et al. is licensed under a Creative Commons Attribution 4.0 International License.
