R and Rmpi

Revision as of 15:53, 1 March 2017 by Tgreen (talk | contribs)

Description

From the R Project Home Page: R is a free software environment for statistical computing and graphics. 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.

Rmpi is a package that provides MPI bindings for the R programming language. In much the same way parallel code is written in other languages such as C or Fortran, R codes can run in parallel across multiple processors or nodes.

Version

  • R: 3.3.2
  • Rmpi: 0.6-6 with R 3.1.2

Installed Packages

  • abind 1.4-5
  • acepack 1.4.1
  • ada 2.0-5
  • akima 0.5-12
  • aplpack 1.3.0
  • arm 1.9-3
  • assertthat 0.1
  • base 3.3.2
  • bayesm 3.0-2
  • BH 1.62.0-1
  • bit 1.1-12
  • bit64 0.9-5
  • bitops 1.0-6
  • boot 1.3-18
  • Boruta 5.1.0
  • bst 0.3-14
  • C50 0.1.0-24
  • car 2.1-3
  • caret 6.0-73
  • caTools 1.17.1
  • chron 2.3-47
  • class 7.3-14
  • cluster 2.0.5
  • coda 0.18-1
  • codetools 0.2-15
  • coin 1.1-2
  • colorspace 1.3-1
  • combinat 0.0-8
  • compiler 3.3.2
  • compositions 1.40-1
  • corpcor 1.6.8
  • crayon 1.3.2
  • Cubist 0.0.18
  • cvTools 0.3.2
  • DAAG 1.22
  • datasets 3.3.2
  • data.table 1.9.6
  • date 1.2-34
  • DBI 0.5-1
  • deldir 0.1-12
  • denstrip 1.5.3
  • DEoptimR 1.0-8
  • dichromat 2.0-0
  • digest 0.6.10
  • diptest 0.75-7
  • dmt 0.8.20
  • doBy 4.5-15
  • doMC 1.3.4
  • doParallel 1.0.10
  • e1071 1.6-7
  • earth 4.4.7
  • effects 3.1-2
  • elasticnet 1.1
  • ellipse 0.3-8
  • energy 1.7-0
  • entropy 1.2.1
  • evaluate 0.10
  • evtree 1.0-1
  • extraTrees 1.0.5
  • fastICA 1.2-0
  • fastmatch 1.0-4
  • fdrtool 1.2.15
  • fields 8.4-1
  • flexmix 2.3-13
  • flsa 1.05
  • FNN 1.1
  • foba 0.1
  • foreach 1.4.3
  • foreign 0.8-67
  • formatR 1.4
  • Formula 1.2-1
  • fpc 2.1-10
  • fts 0.9.9
  • gam 1.14
  • gbm 2.1.1
  • gdata 2.17.0
  • geoR 1.7-5.2
  • geosphere 1.5-5
  • GGally 1.3.0
  • ggplot2 2.2.0
  • glmnet 2.0-5
  • gplots 3.0.1
  • graphics 3.3.2
  • grDevices 3.3.2
  • grid 3.3.2
  • gridBase 0.4-7
  • gridExtra 2.2.1
  • gstat 1.1-3
  • gsubfn 0.6-6
  • gtable 0.2.0
  • gtools 3.5.0
  • hda 0.2-14
  • HDclassif 2.0
  • heplots 1.3-3
  • hexbin 1.27.1
  • HiDimDA 0.2-4
  • highr 0.6
  • Hmisc 4.0-0
  • htmlTable 1.7
  • htmltools 0.3.5
  • htmlwidgets 0.8
  • httpuv 1.3.3
  • igraph 1.0.1
  • infotheo 1.2.0
  • intervals 0.15.1
  • ipred 0.9-5
  • irlba 2.1.2
  • iterators 1.0.8
  • its 1.1.8
  • jsonlite 1.1
  • kernlab 0.9-25
  • KernSmooth 2.23-15
  • kknn 1.3.1
  • klaR 0.6-12
  • knitr 1.15.1
  • kohonen 2.0.19
  • KRLS 0.3-7
  • ks 1.10.4
  • labeling 0.3
  • laeken 0.4.6
  • lars 1.2
  • lattice 0.20-34
  • latticeExtra 0.6-28
  • lava 1.4.5
  • lazyeval 0.2.0
  • leaps 2.9
  • lme4 1.1-12
  • lmtest 0.9-34
  • locfdr 1.1-8
  • LogicReg 1.5.9
  • magrittr 1.5
  • mapproj 1.2-4
  • maps 3.1.1
  • maptools 0.8-40
  • markdown 0.7.7
  • MASS 7.3-45
  • Matrix 1.2-7.1
  • matrixcalc 1.0-3
  • MatrixModels 0.4-1
  • mboost 2.6-0
  • mclust 5.2
  • mda 0.4-9
  • memoise 1.0.0
  • methods 3.3.2
  • mgcv 1.8-15
  • mi 1.0
  • mime 0.5
  • minqa 1.2.4
  • misc3d 0.8-4
  • mlbench 2.1-1
  • ModelMetrics 1.1.0
  • modeltools 0.2-21
  • multcomp 1.4-6
  • multicool 0.1-9
  • munsell 0.4.3
  • mvoutlier 2.0.6
  • mvtnorm 1.0-5
  • ncdf4 1.15
  • neuralnet 1.33
  • nlme 3.1-128
  • nloptr 1.0.4
  • NMF 0.20.6
  • nnet 7.3-12
  • nnls 1.4
  • nodeHarvest 0.7-3
  • numDeriv 2016.8-1
  • obliqueRF 0.3
  • oz 1.0-20
  • pamr 1.55
  • parallel 3.3.2
  • partDSA 0.9.10
  • party 1.1-2
  • partykit 1.1-1
  • pbkrtest 0.4-6
  • pcaPP 1.9-61
  • penalized 0.9-47
  • penalizedLDA 1.1
  • pkgmaker 0.22
  • plogr 0.1-1
  • plotmo 3.3.1
  • plotrix 3.6-3
  • pls 2.5-0
  • plyr 1.8.4
  • pmml 1.5.1
  • poLCA 1.4.1
  • prabclus 2.2-6
  • praise 1.0.0
  • prettyunits 1.0.2
  • pROC 1.8
  • prodlim 1.5.7
  • progress 1.0.2
  • proto 1.0.0
  • protoclass 1.0
  • proxy 0.4-16
  • qrnn 1.1.3
  • quadprog 1.5-5
  • quantreg 5.29
  • quantregForest 1.3-5
  • R2OpenBUGS 3.2-3.1
  • R2WinBUGS 2.1-21
  • R6 2.2.0
  • RandomFields 3.1.24.1
  • RandomFieldsUtils 0.3.3.1
  • randomForest 4.6-12
  • ranger 0.6.0
  • RANN 2.5
  • rARPACK 0.11-0
  • raster 2.5-8
  • Rcmdr 2.3-1
  • RcmdrMisc 1.0-5
  • RColorBrewer 1.1-2
  • Rcpp 0.12.8
  • RcppArmadillo 0.7.500.0.0
  • RcppEigen 0.3.2.9.0
  • readxl 0.1.1
  • registry 0.3
  • relaxo 0.1-2
  • relimp 1.0-5
  • reshape 0.8.6
  • reshape2 1.4.2
  • rFerns 2.0.2
  • rgdal 1.2-4
  • rgl 0.96.0
  • RH2 0.2.3
  • rJava 0.9-8
  • RJDBC 0.2-5
  • rlecuyer 0.3-4
  • Rmpi 0.6-6
  • RMySQL 0.10.9
  • rngtools 1.2.4
  • robCompositions 2.0.2
  • robustbase 0.92-6
  • rocc 1.2
  • ROCR 1.0-7
  • rpart 4.1-10
  • RPostgreSQL 0.4-1
  • rrcov 1.4-3
  • RRF 1.6
  • RSNNS 0.4-7
  • RSpectra 0.12-0
  • RSQLite 1.1
  • RUnit 0.4.31
  • RWeka 0.4-29
  • RWekajars 3.9.0-1
  • sandwich 2.3-4
  • scales 0.4.1
  • scatterplot3d 0.3-37
  • sda 1.3.7
  • sem 3.1-8
  • sgeostat 1.0-27
  • shiny 0.14.2
  • sm 2.2-5.4
  • snow 0.4-2
  • snowfall 1.84-6.1
  • sourcetools 0.1.5
  • sp 1.2-3
  • spacetime 1.2-0
  • spam 1.4-0
  • sparseLDA 0.1-9
  • SparseM 1.74
  • spatial 7.3-11
  • splancs 2.01-39
  • splines 3.3.2
  • spls 2.2-1
  • sqldf 0.4-10
  • sROC 0.1-2
  • stabs 0.5-1
  • stats 3.3.2
  • stats4 3.3.2
  • stepPlr 0.92
  • stringi 1.1.2
  • stringr 1.1.0
  • strucchange 1.5-1
  • superpc 1.09
  • survival 2.40-1
  • svUnit 0.7-12
  • tcltk 3.3.2
  • tcltk2 1.2-11
  • TeachingDemos 2.10
  • tensorA 0.36
  • testthat 1.0.2
  • TH.data 1.0-7
  • tibble 1.2
  • timeDate 3012.100
  • timeSeries 3022.101.2
  • tis 1.30
  • tkrplot 0.0-23
  • tools 3.3.2
  • trimcluster 0.1-2
  • tripack 1.3-7
  • tseries 0.10-35
  • utils 3.3.2
  • vcd 1.4-3
  • VIM 4.6.0
  • viridis 0.3.4
  • XML 3.98-1.5
  • xtable 1.8-2
  • xts 0.9-7
  • yaml 2.1.14
  • zoo 1.7-13

Authorized Users

  • CIRCE account holders
  • RRA account holders
  • SC account holders

Platforms

  • CIRCE cluster
  • RRA cluster
  • SC cluster

Modules

R and Rmpi requires the following module file to run:

  • apps/R/3.3.2

Running R and Rmpi on CIRCE/SC

The R and Rmpi user guide is essential to understanding the application and making the most of it. The guide and this page should help you to get started with your simulations. Please refer to the Documentation section for a link to the guide.

  • Note on CIRCE: Make sure to run your jobs from your $WORK directory!
  • Note: Scripts are provided as examples only. Your SLURM executables, tools, and options may vary from the example below. For help on submitting jobs to the queue, see our SLURM User’s Guide.

Prepare your R Environment

Copy this file to /path/to/job/directory/.Rprofile to allow Rmpi jobs to work, e.g.:

cp /apps/R/3.3.2/share/Rprofile $WORK/rmpi_test/.Rprofile

Submitting a Job

A sample submit script is listed below. If, for example, you have an R input file named r-test.R, you would set up a submit script like this:

  • The script below (for testing, name it “r-test.sh”) can be copied into your job directory (the folder with your input files) and modified so that you can submit batch processes to the queue.
  • Note: As in the example below, Rmpi is currently only available with R version 3.1.2.

#!/bin/bash
#
#SBATCH --comment=r-test
#SBATCH --ntasks=4
#SBATCH --job-name=r-test
#SBATCH --output=output.%j.r-test
#SBATCH --time=01:00:00

#### SLURM 4 processor R test to run for 1 hour.

module purge
module add apps/R/3.1.2

mpirun Rmpi r-test.R

 
Next, you can change to your job’s directory, and run the sbatch command to submit the job:

[user@login0 ~]$ cd my/jobdir
[user@login0 jobdir]$ sbatch ./r-test.sh
  • You can view the status of your job with the “squeue -u <username>” command

Documentation

Home Page, User Guides, and Manuals

Benchmarks, Known Tests, Examples, Tutorials, and Other Resources

More Job Information

See the following for more detailed job submission information:

Reporting Bugs

Report bugs with R and Rmpi to the IT Help Desk: rc-help@usf.edu