R/Interactive

From ScientificComputing
Jump to: navigation, search

You can start an interactive R session on the login node by typing the command R.

[sfux@eu-login-04 ~]$ module load new gcc/4.8.2 r/3.3.0
Using OpenBLAS build of R-3.3.0
[sfux@eu-login-04 ~]$ R

R version 3.3.0 (2016-05-03) -- "Supposedly Educational"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-slackware-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

>

Interactive R sessions can for instance be used to install additional R packages locally, or to check which R packages are centrally installed. The list of already installed packages can be displayed with the following R command in an interactive session:

installed.packages()

If the package that you would like to use is not yet installed, then you can either install it locally or contact cluster support.