I have a Stan model I’ve been developing on a remote Linux server. I want to start running it on my local machine as well, which is a Macbook Pro with the M1 chip. I had a hard time getting Rcpp installed, but I think it’s working now. However, when I run the model script (which I know works from the server), I get this message:
SAMPLING FOR MODEL 'process_sdm' NOW (CHAIN 1).  "Error in sampler$call_sampler(args_list[[i]]) : "  " VECTOR_ELT() can only be applied to a 'list', not a 'special'" error occurred during calling the sampler; sampling not done
The Stan and R scripts are really long but I can share snippets if useful. I used a minimal example to test that Stan is working on this machine and it ran without issues. I read through the other Discourse posts with similar error messages and I’m not sure that any of them apply, so suggestions of what might be going wrong in this Linux-to-M1-Mac transition are much appreciated!