Open idontgetoutmuch opened 2 years ago
I get a similar problem when adding the control argument to the stan function. I get the following error:
SAMPLING FOR MODEL 'spline_reg' NOW (CHAIN 1).
[1] "Error in sampler$call_sampler(args_list[[i]]) : "
[2] " VECTOR_ELT() can only be applied to a 'list', not a 'NULL'"
error occurred during calling the sampler; sampling not done
R version 4.1.1 (2021-08-10) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Monterey 12.0.1
I get a similar problem when adding the control argument to the stan function. I get the following error:
SAMPLING FOR MODEL 'spline_reg' NOW (CHAIN 1). [1] "Error in sampler$call_sampler(args_list[[i]]) : " [2] " VECTOR_ELT() can only be applied to a 'list', not a 'NULL'" error occurred during calling the sampler; sampling not done
R version 4.1.1 (2021-08-10) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Monterey 12.0.1
Yep, same here too on Monterey and aarch64.
Just as a quick update for the developers and for any similarly confused users, this bug no longer occurs when using the latest experimental version of RStan compiled from GitHub.
To install the experimental branch yourself, just run:
remove.packages(c("rstan", "StanHeaders"))
remotes::install_github("stan-dev/rstan", ref = "experimental", subdir = "StanHeaders")
remotes::install_github("stan-dev/rstan", ref = "experimental", subdir = "rstan/rstan")
This also has the added benefit of a much newer version of Stan on the backend.
Summary:
SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 1). Chain 1: Chain 1: Gradient evaluation took 2.7e-05 seconds Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.27 seconds. Chain 1: Adjust your expectations accordingly! Chain 1: Chain 1: [1] "Error in sampler$call_sampler(args_list[[i]]) : " [2] " c++ exception (unknown reason)"
error occurred during calling the sampler; sampling not done
Description:
See above
Reproducible Steps:
See above. I am on
Current Output:
See above
Expected Output:
RStan Version:
R Version:
Operating System: