Using instantiate with devtools is a bit tricky, because the model compilation and installation happens in the src/install.libs.R file, which doesn't get simulated during pkgload::load_all. We need a workaround to use the stan models in tests, or for devtool::load_all to work.
Using
instantiate
withdevtools
is a bit tricky, because the model compilation and installation happens in thesrc/install.libs.R
file, which doesn't get simulated duringpkgload::load_all
. We need a workaround to use the stan models in tests, or fordevtool::load_all
to work.