Hi all,
I’m on MacOS: 11.2.1
cmdstanr: 2.27.0
I’m trying to use a package, Aria (GitHub - mike-lawrence/aria: An R package implementing an idiosyncratic Stan workflow), which uses cmdstanr. I get the following warning when running with Aria but not when I just use cmdstanr, but the developer of the Aria package, Mike, a member here, suggested that the issue was actually with cmdstanr.
Haven’t been able to find anything with this particular error, it does look like putting rebuild_cmdstan() in the cmdstanr function call has helped people, but in my particular case, I can’t put this in the Aria function call.
ensure model is compiled
aria:::check_and_compile(mod_path,block=T)
Aria:
aria::compose(
data = data_for_stan
, code_path = mod_path
, out_path = post_path
, overwrite = T
, block = T
)
cmdstanr:
mymodel_obj ← cmdstan_model(mod_path, cpp_options = list(stan_threads = TRUE))
post ← mymodel_obj$sample(data_for_stan, chains = 4, refresh = 1,
threads_per_chain=8,
output_dir = “.”, validate_csv = FALSE,
adapt_delta=0.8)
Could add actual data and code, but there’s a lot of code, so seeing whether anyone has experienced a similar issue or might know how to fix this particular error.
Thanks much!
James