Didn’t get as far as you probably thought:
library(rstan)
rstan_options(auto_write = TRUE)
Sys.setenv(LOCAL_CPPFLAGS = ‘-march=native’)
options(mc.cores = parallel::detectCores())
datafitX ← stan(file=“STAN/flights_model/flights_model.stan”,data=c(“J”,“y”,“n”), iter = 10000, verbose = TRUE, chains = 4,control=list(adapt_delta=0.8, max_treedepth =10))
TRANSLATING MODEL ‘flights_model’ FROM Stan CODE TO C++ CODE NOW.
successful in parsing the Stan model ‘flights_model’.
CHECKING DATA AND PREPROCESSING FOR MODEL ‘flights_model’ NOW.
COMPILING MODEL ‘flights_model’ NOW.
Error: cannot allocate vector of size 12965.5 Gb