I have installed rstan and stanHeaders using the following commands:
install.packages(“https://win-builder.r-project.org/gdaEAY9p8V7I/StanHeaders_2.21.0-6.zip”, repos = NULL, type = “win.binary”)
install.packages(“https://win-builder.r-project.org/8GI7TA5e2eyj/rstan_2.21.2.zip”, repos = NULL, type = “win.binary”)
packageVersion(“rstan”)
[1] ‘2.21.2’
packageVersion(“StanHeaders”)
[1] ‘2.21.0.6’
The problem is that whenever I compile ANY stan model, I get the following kind of error:
> height_model <- stan_model('../stan_programs/height_model.stan', verbose=TRUE)
TRANSLATING MODEL ‘height_model’ FROM Stan CODE TO C++ CODE NOW.
successful in parsing the Stan model ‘height_model’.
COMPILING THE C++ CODE FOR MODEL ‘height_model’ NOW.
*OS: x86_64, mingw32; rstan: 2.21.2; Rcpp: 1.0.5; inline: 0.3.15 *
Error in file(con, “r”) : invalid ‘description’ argument