R: Difference between revisions

173 bytes added ,  5 years ago
no edit summary
No edit summary
No edit summary
Line 92: Line 92:


<!--T:18-->
<!--T:18-->
To install packages from [https://cran.r-project.org/ CRAN], you can use <tt>install.packages</tt> while running an interactive R session on the cluster's login node. Many R packages are developed using the GNU family of compilers so we recommend that you load a <tt>gcc</tt> [[Utiliser des modules/en|module]] before trying to install any R packages. Use the same version of the <tt>gcc</tt> for all packages you install.
To install packages from [https://cran.r-project.org/ CRAN], you can use <tt>install.packages</tt> while running an interactive R session on the cluster's login node. Many R packages are developed using the GNU family of compilers so we recommend that you load a <tt>gcc</tt> [[Utiliser des modules/en|module]] before trying to install any R packages, as well as one of the <tt>imkl</tt> modules that provide the MKL, a high-performance library for many basic numerical operations like linear algebra. Use the same version of the <tt>gcc</tt> and <tt>imkl</tt> for all packages you install.
{{Command
{{Command
|module load gcc
|module load gcc imkl
}}
}}
For example, to install the <tt>sp</tt> package that provides classes and methods for spatial data, use the following command on a login node:
For example, to install the <tt>sp</tt> package that provides classes and methods for spatial data, use the following command on a login node:
Bureaucrats, cc_docs_admin, cc_staff
2,306

edits