...
Code Block |
---|
(base) [netidhere@node ~]$ conda deactivate |
#2
perform Perform the following module loads:
Code Block |
---|
[netidhere@node ~]$ module load gsl/2.7 cuda/11.6 udunits freetype/2.12.1 gdal/3.8.4 r/4.4.0 |
...
After gdal is loaded, R can be called to install a local version of INLA
R-INLA needs the remotes command from either devtools or standalone to be able to install successfully as R-INLA is not in the CRAN repository.
If devtools is not locally installed, devtools would need to be installed first before R-INLA can be installed:
Code Block |
---|
[netidhere@node ~]$ R > .> .libPaths("~/rlibs") > library(devtools) > remotes::install_versioninstall.packages("INLAdevtools", lib = "~/rlibs", type version= "24.02.09source",repos=c(getOption("repos"),INLA= repo = "https://inlacloud.r-inla-downloadproject.org/R/stable"), dep=TRUE) |
R-INLA needs the remotes command from either devtools or standalone to be able to install successfully as R-INLA is not in the CRAN repository.
If devtools is not locally installed, devtools would need to be installed first before R-INLA can be installed:
Code Block |
---|
> .libPaths("~/rlibs") > ") |
Devtools can take a long time to install due to being a very large package.
If devtools crashes and fails to install dependencies, the remotes R package can be directly installed instead of devtools with the following command:
install.packages("
...
remotes",
...
lib
...
=
...
"~/rlibs",
...
type
...
=
...
"source",
...
repo
...
=
...
"https://cloud.r-project.org/")
...
Devtools can take a long time to install due to being a very large package.
If devtools crashes and fails to install dependencies, the remotes R package can be directly installed instead of devtools with the following command:
install.packages("remotes", lib =
#4
Code Block |
---|
[netidhere@node ~]$ R > .libPaths("~/rlibs") > library(devtools) OR library(remotes) > remotes::install_version("INLA", lib = "~/rlibs", |
...
version="24.02.09",repos=c(getOption("repos"),INLA="https:// |
...
inla.r-inla- |
...
download.org/R/stable"), dep=TRUE) |
A specific version of R-INLA can be installed, in the above example the stable 24.02.09 version of INLA will be installed and the library will install under a local library directory called ~/rlibs.
...