BwUniCluster2.0/Software/R: Difference between revisions

From bwHPC Wiki
Jump to navigation Jump to search
mNo edit summary
Line 29: Line 29:
| <!-- mention if there is more than one software in the module, i.e. icc, ifort and debugger -->
| <!-- mention if there is more than one software in the module, i.e. icc, ifort and debugger -->
|}
|}



== Description ==
== Description ==

'''R''' is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.
'''R''' is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.


Line 38: Line 40:


R is available as Free Software under the terms of the Free Software Foundation’s GNU General Public License in source code form. It compiles and runs on a wide variety of UNIX platforms and similar systems (including FreeBSD and Linux), Windows and MacOS.
R is available as Free Software under the terms of the Free Software Foundation’s GNU General Public License in source code form. It compiles and runs on a wide variety of UNIX platforms and similar systems (including FreeBSD and Linux), Windows and MacOS.



== Versions and Availability ==
== Versions and Availability ==

A current list of the versions available on the bwUniCluster and bwForClusters can be obtained from the Cluster Information System: [http://cis-hpc.uni-konstanz.de/prod.cis/math/R CIS Information on R]
A current list of the versions available on the bwUniCluster and bwForClusters can be obtained from the Cluster Information System: [http://cis-hpc.uni-konstanz.de/prod.cis/math/R CIS Information on R]


Line 46: Line 50:
$ module avail math/R
$ module avail math/R
</pre>
</pre>

<br>


== Usage ==
== Usage ==

=== Loading the module ===
=== Loading the module ===
You can load the default version of ''software name'' with the command
You can load the default version of R with the command
<pre>
<pre>
$ module load math/R
$ module load math/R
</pre>
</pre>


The module will try to load modules it needs to function (e.g. compiler/intel). If loading the module fails, check if you have already loaded one of those modules, but not in the version needed for ''software name''.
The module will try to load modules it needs to function (e.g. compiler/intel). If loading the module fails, check if you have already loaded one of those modules, but not in the version needed for R.

If you wish to load a specific (older) version, you can do so using e.g.
If you wish to load a specific (older) version, you can do so using e.g.
<pre>
<pre>
Line 61: Line 67:
</pre>
</pre>
to load the version 3.1.2.
to load the version 3.1.2.

<br>


=== Program Binaries ===
=== Program Binaries ===

Executing R in batch mode:
Executing R in batch mode:


Line 80: Line 87:
</pre>
</pre>


<br>


== Examples ==
== Examples ==

The software module contains R examples for the bwUniCluster:
The software module contains R examples for the bwUniCluster:
<pre>
<pre>
Line 97: Line 104:
$ ls # when job finishes the results will be visible in this directory
$ ls # when job finishes the results will be visible in this directory
</pre>
</pre>



== Version-Specific Information ==
== Version-Specific Information ==

For information specific to a single version, see the information available via the module system with the command
For information specific to a single version, see the information available via the module system with the command
<pre>
<pre>
$ module help chem/R
$ module help chem/R
</pre>
</pre>

<br>

[[Category:Mathematics software]][[Category:bwUniCluster]]
[[Category:Mathematics software]][[Category:bwUniCluster]]

Revision as of 17:27, 25 June 2015

R
module load math/R
Availability bwUniCluster
License GPL
Citing
Links Homepage; Documentation
Graphical Interface No
Included in module


Description

R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.

R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, …) and graphical techniques, and is highly extensible. The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.

One of R’s strengths is the ease with which well-designed publication-quality plots can be produced, including mathematical symbols and formulae where needed. Great care has been taken over the defaults for the minor design choices in graphics, but the user retains full control.

R is available as Free Software under the terms of the Free Software Foundation’s GNU General Public License in source code form. It compiles and runs on a wide variety of UNIX platforms and similar systems (including FreeBSD and Linux), Windows and MacOS.


Versions and Availability

A current list of the versions available on the bwUniCluster and bwForClusters can be obtained from the Cluster Information System: CIS Information on R

On the command line interface of any bwHPC cluster, a list of the available R versions using

$ module avail math/R


Usage

Loading the module

You can load the default version of R with the command

$ module load math/R

The module will try to load modules it needs to function (e.g. compiler/intel). If loading the module fails, check if you have already loaded one of those modules, but not in the version needed for R.

If you wish to load a specific (older) version, you can do so using e.g.

$ module load math/R/3.1.2

to load the version 3.1.2.


Program Binaries

Executing R in batch mode:

R CMD BATCH --no-save --no-restore <INPUT_FILE>.R

For help run

R --help

For command help run

R CMD command --help


Examples

The software module contains R examples for the bwUniCluster:

$ module show math/R
$ module load math/R
$ ls $R_EXA_DIR
$ cat $R_EXA_DIR/README
$ mkdir Rtest
$ cp $R_EXA_DIR/bwhpc-r.moab $R_EXA_DIR/fit.R Rtest/
$ cd Rtest/
$ nano bwhpc-r.moab                                # change job options
$ msub bwhpc-r.moab                               # submit job
$ checkjob -v <JOBID>                              # check state of job
$ ls                                                                # when job finishes the results will be visible in this directory


Version-Specific Information

For information specific to a single version, see the information available via the module system with the command

$ module help chem/R