I’m trying to install rstan on a remote server (a Unix computing cluster) and I can’t get the package to install correctly. I’m relatively new to using a remote server like this, but the same procedure is working for other R packages.
Outside of R (in the terminal on the remote machine), I’m creating a file:
cat > install-packages.R
dir.create(Sys.getenv(“R_LIBS_USER”), showWarnings = FALSE, recursive = TRUE) install.packages(c(“StanHeaders”, “rstan”, “Rcpp”, “RcppEigen”, “inline”, “BH”), repos = “http://cloud.r-project.org/”, dependencies=TRUE)
I run this file with: R CMD BATCH install-packages.R
Then when I’m in R, and I tried to load libraries rstan and StanHeaders, I get the error message that these packages do not exist. But for other packages the load just fine.
I’ve also tried placing the rstan_2.16.2.tar.gz file in my library, but I’ve had the same problem.
Has anybody had success installing on a remote server, and what did you do?