Today I run a STAN model from R and I have no problems as usual; after some hours I run again the same model but it doesen’t work (all chains remain stopped at first iteration) so I run the school.stan example code and I have that problem that I’ve never seen.
This is my simple code:
> library(rstan) Carico il pacchetto richiesto: StanHeaders 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) Do not specify '-march=native' in 'LOCAL_CPPFLAGS' or a Makevars file Attaching package: ‘rstan’ The following object is masked from ‘package:tidyr’: extract > > options(mc.cores = parallel::detectCores()) > rstan_options(auto_write = TRUE) > > schools_dat <- list(J = 8, + y = c(28, 8, -3, 7, -1, 1, 18, 12), + sigma = c(15, 10, 16, 11, 9, 11, 10, 18)) > fit <- stan(file = 'STAN/schools.stan', data = schools_dat, + chains = 3) Errore: cannot allocate vector of size 17075.9 Gb Inoltre: Warning message: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) : 'C:/rtools40/usr/mingw_/bin/g++' not found
Please, has someone any help or any ideas to solve the problem?