My problem is now when I add a second .stan file to exec, even if it is just a renamed copy of the working model, I get this error when I try to build.
Updating baconr documentation
Loading baconr
Error in is(module, “character”) : object ‘m’ not found
Calls: suppressPackageStartupMessages … load_all -> run_ns_load_actions -> action -> loadModule -> is
In addition: Warning message:
package ‘Rcpp’ was built under R version 3.4.2
Execution halted
Exited with status 1.
The only forum replies I can find which mention this error talk about missing the useDynLib() call, but I have that.
thanks for the reply. This might be the problem. Using "clean and rebuild"
from RStudio doesn’t fix it and I’m having some problems building from CMD
on my home machine. I’ll try to work through it tomorrow.
Is it possible that there are build artefacts that are not being
ignored/cleaned?
Thanks for the help. There were some files that were not getting
"pre-cleaned", I think Modules.cpp was the problem. Probably because I had
committed it to the git repo by mistake.