Afficher la pageAnciennes révisionsHaut de page Cette page est en lecture seule. Vous pouvez afficher le texte source, mais ne pourrez pas le modifier. Contactez votre administrateur si vous pensez qu'il s'agit d'une erreur. ====== R language ====== **R** is a language and 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. 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. ====== Installed version ====== * 3.0.2 * 3.3.0 * 3.5.0 <code bash> $ module avail lang/r </code> Use ''module load '' command to load the needed version. For example : <code bash> $ module load lang/r/3.5.0 </code> ====== Using R ====== ===== SGE Script ===== <file bash R_Script.sge> #!/bin/bash #$ -N RScript_sge #$ -o $JOB_NAME.$JOB_ID.out #$ -l h_vmem=4G ## on demande 4G a adapter module load lang/r/3.3.0 R CMD BATCH scriptTest.r output ## or Rscript scriptTest.r params </file> and submit job : <code bash> $ qsub R_Script.sge </code> ===== Install Local R Packages ===== First we need to create a local folder in WORK directory: <code bash> $ mkdir -p $WORK/R_libs </code> Second, we install package by giving the path to our local folder: For example: We start R session <code bash> $ R </code> We change directory to ''$WORK'' <code bash> $cd $WORK </code> And finally <code bash> install.packages("lattice", repos="http://cran.r-project.org", lib="./R_libs") </code> r.txt Dernière modification : 2018/06/08 07:36de admin