Open ben18785 opened 9 months ago
I suspect sometimes relatedly, I get the same error when I call cmdstanr::cmdstan_model
from the console and the remedy is to create a new Stan file and compile that instead.
The model methods implementation is currently undergoing a fairly significant rework, I'd recommend waiting until that's finished before spending too much time on debugging and workarounds for a package
Describe the bug I am using a staged installation in an R package I am developing (using the machinery of
instantiate
). When I usecmdstanr::cmdstan_model
without the additional argumentcompile_model_methods=TRUE
, thendevtools::install()
works fine. However, if I setcompile_model_methods=TRUE
, it fails. In the below, I replace the code thatinstantiate
uses withcmdstanr
code (which it calls), which seems to isolate the bug tocmdstanr
. I've got a strong feeling this is to do with my m1 Mac.To Reproduce
instantiate::stan_package_create("mypackage")
instantiate::stan_package_configure()
then this returns an error:
Expected behavior Package should install. (It does so fine when
compile_model_methods=FALSE
.)Operating system Mas OS Monterrey version 12.2.1
CmdStanR version number 0.7.1
Session info