Difference between revisions of "R 2016"

From HPC users
Jump to navigationJump to search
Line 3: Line 3:
R is a free software environment for statistical computing and graphics.
R is a free software environment for statistical computing and graphics.


=== Using R on the HPC cluster ===
== Using R on the HPC cluster ==


If you want to use R on the HPC cluster, you will have to load its module. You can do that by using the command
If you want to use R on the HPC cluster, you will have to load its module. You can do that by using the command
Line 11: Line 11:
you will find more informations about the module.
you will find more informations about the module.


=== Installed version ===
== Installed version ==
The currently installed version of R is '''3.3.1'''.
The currently installed version of R is '''3.3.1'''.


==== Additional installed packages ====
=== Additional installed packages ===


The R release contains a lot of additional packages. After loading and starting R ("module load R" and simply "R" on the command line), you can generate a list of all of them by using the following commands
The R release contains a lot of additional packages. After loading and starting R ("module load R" and simply "R" on the command line), you can generate a list of all of them by using the following commands
Line 30: Line 30:
         adabag        4.1
         adabag        4.1


=== Documentation ===
== Documentation ==


You can look up anything about R on their  
You can look up anything about R on their  
*[https://www.rdocumentation.org/ documentation pages]
*[https://www.rdocumentation.org/ documentation pages]
*[https://cran.r-project.org/manuals.html manual pages]
*[https://cran.r-project.org/manuals.html manual pages]

Revision as of 09:51, 27 March 2017

Introduction

R is a free software environment for statistical computing and graphics.

Using R on the HPC cluster

If you want to use R on the HPC cluster, you will have to load its module. You can do that by using the command

module load R

Since there is only one version of R installed, you dont need to specify a version. If you use the command

module spider R

you will find more informations about the module.

Installed version

The currently installed version of R is 3.3.1.

Additional installed packages

The R release contains a lot of additional packages. After loading and starting R ("module load R" and simply "R" on the command line), you can generate a list of all of them by using the following commands

ip <- as.data.frame(installed.packages()[,c(1,3:4)])
rownames(ip) <- NULL
ip <- ip[is.na(ip$Priority),1:2,drop=FALSE]
print(ip, row.names=FALSE)

You will receive a list of every package and its related version. It should look like this:

       Package     Version
           abc         2.1
      abc.data         1.0
         abind       1.4-3
       acepack     1.3-3.3
        adabag         4.1

Documentation

You can look up anything about R on their