I am an absolutely fresh recruit to RSTAN
With great struggle, I have managed to get myself initiated into this field.
I have followed instructions for loading rstan as follows
On doing the above, I get the following message which keeps repeating endlessly
clang: error: no such file or directory: ‘Stats’
clang: error: no input files
clang: error: no such file or directory: ‘Stats’
clang: error: no input files
clang: error: no such file or directory: ‘Stats’
clang: error: no input files
clang: error: no such file or directory: ‘Stats’
clang: error: no input files
clang: error: no such file or directory: ‘Stats’
Thanks a million Ben. But NO. It does not happen as you will see below. PLEASE HELP
library(rstan)
Loading required package: StanHeaders
Loading required package: ggplot2
rstan (Version 2.21.2, 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)
Warning message:
package ‘StanHeaders’ was built under R version 4.0.2
rstan_options(auto_write = TRUE)
example(stan_model, package = “rstan”, run.dontrun = TRUE)
stn_md> stancode <- ‘data {real y_mean;} parameters {real y;} model {y ~ normal(y_mean,1);}’
stn_md> mod <- stan_model(model_code = stancode, verbose = TRUE)
TRANSLATING MODEL ‘16a540c6086086816528e4524def24d9’ FROM Stan CODE TO C++ CODE NOW.
successful in parsing the Stan model ‘16a540c6086086816528e4524def24d9’.
clang: error: no such file or directory: ‘Stats’
clang: error: no input files