Dear Stan folks,
I tried to install the rstan package on the new machine. I first downloaded Rtools 40 and installed the rstan package with RStudio. The issue is that it seems Rtools40 does not find the path. Second is that when I tried the example code, the error message appears. I paste my code and error messages. Could anyone help me, please?
Sys.which(“make”)
make
“”
install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies = TRUE)
library(rstan)
example(stan_model,run.dontrun = TRUE)
Error in prep_call_sampler(object) :
could not find function “prep_call_sampler”
In addition: Warning message:
In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
‘-E’ not found
Thanks!