cc_staff
56
edits
(r/3.4.0 no longer latest version) |
(Several lines added detailing module load gcc nixpkgs) |
||
Line 18: | Line 18: | ||
|module load r/3.3.3 | |module load r/3.3.3 | ||
}} | }} | ||
and | |||
You will also likely need to load nixpkgs and gcc | |||
{{Command | |||
|module load nixpkgs/16.09 | |||
|module load gcc/5.4.0 | |||
}} | |||
You might also have to load various other modules depending on the packages you need to install. For example, "rgdal" will require that you load a module called "gdal", which itself requires that you load nixpkgs and gcc. If any package fails to install, be sure to read the error message carefully, as it might give you some details concerning some additional modules you need to load. You can also find out if a module is dependent on any other module by running | |||
{{Command | |||
|module spider gdal/2.2.1 | |||
}} | |||
With R and the appropriate modules now loaded in your environment, you can start the R interpreter and type R code inside that environment: | |||
{{Command | {{Command | ||
|lang="R" | |lang="R" | ||
Line 121: | Line 133: | ||
<!--T:29--> | <!--T:29--> | ||
This uses OpenMPI version 1.10.7 which is needed to spawn processes correctly (the default MPI module 2.1.1 has a problem with that at present). | This uses OpenMPI version 1.10.7 which is needed to spawn processes correctly (the default MPI module 2.1.1 has a problem with that at present). | ||
Again, carefully read any error message that comes up when packages fail to install and load the required modules to ensure that all your packages are successfully installed. | |||
====Running==== <!--T:30--> | ====Running==== <!--T:30--> |