I’m working on an R package that uses Stan. I’m following the guidelines as best I can, but there’s one important detail that’s still unclear to me. When I edit a
.stan file and want to have a clean slate, what’s the best way to guarantee it gets recompiled? I’m currently using this:
pkgbuild::compile_dll(path = ".", force = T) roxygen2::roxygenize() devtools::test()
But, the first command yields a confusing mix of 1) stale warnings that refer to lines that no longer exist in my
.stan file and 2) intentional freshly added syntax errors that I used to check what
.stan file is being used.