Difference between revisions of "R"

From arccwiki
Jump to: navigation, search
(Created page with " * Homepage: https://www.r-project.org/ R]: The R Project for Statistical Computing ==Module: Example== <pre> []$ module spider r ---------------------------------- r: ----...")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
* Homepage: https://www.r-project.org/ R]: The R Project for Statistical Computing
+
* Homepage: [https://www.r-project.org/ R]: The R Project for Statistical Computing
  
 
==Module: Example==
 
==Module: Example==
 
<pre>
 
<pre>
 
[]$ module spider r
 
[]$ module spider r
----------------------------------
+
----------------------------
 
   r:
 
   r:
----------------------------------
+
----------------------------
 
     Versions:
 
     Versions:
 
         r/3.4.4
 
         r/3.4.4
Line 20: Line 20:
 
         r/3.6.1
 
         r/3.6.1
  
----------------------------------
+
----------------------------
 
   For detailed information about a specific "r" module (including how to load the modules) use the module's full name.
 
   For detailed information about a specific "r" module (including how to load the modules) use the module's full name.
 
   For example:
 
   For example:
  
 
     $ module spider r/3.6.1
 
     $ module spider r/3.6.1
----------------------------------
+
----------------------------
 +
 
 +
[]$ module spider r/3.6.1
 +
----------------------------
 +
  r: r/3.6.1
 +
----------------------------
 +
    You will need to load all module(s) on any one of the lines below before the "r/3.6.1" module is available to load.
 +
      swset/2018.05  gcc/7.3.0
 
</pre>
 
</pre>
  
Line 33: Line 40:
  
 
==Using:==
 
==Using:==
 +
Once the modules have been loaded:
 +
<pre>
 +
[]$ R
 +
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
 +
Copyright (C) 2019 The R Foundation for Statistical Computing
 +
Platform: x86_64-pc-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.
 +
 +
 +
> sessionInfo()
 +
R version 3.6.1 (2019-07-05)
 +
Platform: x86_64-pc-linux-gnu (64-bit)
 +
Running under: Storage
 +
 +
Matrix products: default
 +
BLAS:  /pfs/tsfs1/apps/el7-x86_64/u/gcc/7.3.0/r/3.6.1-3rtwrmw/rlib/R/lib/libRblas.so
 +
LAPACK: /pfs/tsfs1/apps/el7-x86_64/u/gcc/7.3.0/r/3.6.1-3rtwrmw/rlib/R/lib/libRlapack.so
 +
 +
locale:
 +
[1] LC_CTYPE=en_US.UTF-8      LC_NUMERIC=C             
 +
[3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8   
 +
[5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8 
 +
[7] LC_PAPER=en_US.UTF-8      LC_NAME=C               
 +
[9] LC_ADDRESS=C              LC_TELEPHONE=C           
 +
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C     
 +
 +
attached base packages:
 +
[1] stats    graphics  grDevices utils    datasets  methods  base   
 +
 +
loaded via a namespace (and not attached):
 +
[1] compiler_3.6.1
 +
 +
 +
> quit()
 +
Save workspace image? [y/n/c]: n
 +
[@tlog2 ~]$
 +
</pre>
 +
 +
==Notes:==
 +
* This software is dependent on the following modules:
 +
** gcc/7.3.0
 +
** Due to the install process, at this moment in time you have to explicitly load gcc before loading r. If you try loading r before gcc you will see the following message:
 +
<pre>
 +
[]$ module load r/3.6.1
 +
Lmod has detected the following error:  These module(s) exist but cannot be loaded as requested: "r/3.6.1"
 +
  Try: "module spider r/3.6.1" to see how to load the module(s).
 +
</pre>
  
 
<br/>
 
<br/>
 
Back to [[HPC Installed Software]]
 
Back to [[HPC Installed Software]]

Revision as of 17:16, 5 November 2019

  • Homepage: R: The R Project for Statistical Computing

Module: Example

[]$ module spider r
----------------------------
  r:
----------------------------
     Versions:
        r/3.4.4
        r/3.5.0-py27
        r/3.5.0
        r/3.5.1s
        r/3.5.2-py27
        r/3.5.2
        r/3.5.3-py27
        r/3.5.3
        r/3.6.1-py27
        r/3.6.1

----------------------------
  For detailed information about a specific "r" module (including how to load the modules) use the module's full name.
  For example:

     $ module spider r/3.6.1
----------------------------

[]$ module spider r/3.6.1
----------------------------
  r: r/3.6.1
----------------------------
    You will need to load all module(s) on any one of the lines below before the "r/3.6.1" module is available to load.
      swset/2018.05  gcc/7.3.0
module load gcc/7.3.0 r/3.6.1

Using:

Once the modules have been loaded:

[]$ R
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-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.


> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Storage

Matrix products: default
BLAS:   /pfs/tsfs1/apps/el7-x86_64/u/gcc/7.3.0/r/3.6.1-3rtwrmw/rlib/R/lib/libRblas.so
LAPACK: /pfs/tsfs1/apps/el7-x86_64/u/gcc/7.3.0/r/3.6.1-3rtwrmw/rlib/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.6.1


> quit()
Save workspace image? [y/n/c]: n
[@tlog2 ~]$ 

Notes:

  • This software is dependent on the following modules:
    • gcc/7.3.0
    • Due to the install process, at this moment in time you have to explicitly load gcc before loading r. If you try loading r before gcc you will see the following message:
[]$ module load r/3.6.1
Lmod has detected the following error:  These module(s) exist but cannot be loaded as requested: "r/3.6.1"
   Try: "module spider r/3.6.1" to see how to load the module(s).


Back to HPC Installed Software