...
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/")
#4
Install SF R package:
Code Block |
---|
> .libPaths("~/rlibs")
> install.packages("sf", lib = "~/rlibs", type = "source", configure.args = c("--with-sqlite3-lib=/gpfs/sharedfs1/admin/hpc2.0/apps/sqlite/3.45.2/lib", "--with-proj-lib=/gpfs/sharedfs1/admin/hpc2.0/apps/proj/9.4.0/lib64"), repo = "https://cloud.r-project.org/") |
The libraries for sqlite3 and proj can change depending if gdal updates and gdal is built with newer versions.
Before each install, you might need to quit out of R and reload R with a fresh environment.
#5
R-INLA:
Code Block |
---|
[netidhere@node ~]$ R > .libPaths("~/rlibs") > library(devtools) OR library(remotes) > library(sf) > 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) |
...