I’m trying to run my R code on a remote server (Linux computing cluster). I’ve succesully installed the necessary R packages to the server such as rstan and loo packages. However, when submitting a job to the server, the following warning and error messages appear:
During startup - Warning messages:
1: Setting LC_CTYPE failed, using “C”
2: Setting LC_COLLATE failed, using “C”
3: Setting LC_TIME failed, using “C”
4: Setting LC_MESSAGES failed, using “C”
5: Setting LC_MONETARY failed, using “C”
6: Setting LC_PAPER failed, using “C”
7: Setting LC_MEASUREMENT failed, using “C”
Loading required package: ggplot2
Loading required package: StanHeaders
rstan (Version 2.17.3, GitRev: 2e1f913d3ca3)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
This is loo version 2.0.0.
**NOTE: As of version 2.0.0 loo defaults to 1 core but we recommend using as many as possible. Use the ‘cores’ argument or set options(mc.cores = NUM_CORES) for an entire session. Visit mc-stan.org/loo/news for details on other changes.
Error in system2(file.path(R.home(component = “bin”), “R”), args = paste(“CMD config”, : **
** error in running command
Calls: stan_model -> get_CXX -> system2
Any idea how can I solve this problem? Is it somehow related to installing Xcode on the server? and how can I do this?
Given that I can run the R code on my Mac laptop without any problems.