Compiling r packages that include precompiled Stan models

Hi,

I have been developing an R package that includes some pre-compiled Stan models. The package is based on these guidelines https://mc-stan.org/rstantools/articles/minimal-rstan-package.html. Everything was working great and if I wanted to quickly recompile everything without recompiling Stan models I would use the code below:

library(devtools)
library(roxygen2)
options(devtools.install.args = "--no-multiarch")

roxygen2::roxygenise(clean=TRUE)
devtools::install('.', local=TRUE)
devtools::document()

About 14 days or so ago I updated devtools to the latest version and now the local=TRUE flag is not preventing compilation of stan models anymore. It does not matter whether the flag is set to TRUE or FALSE, everything recompiles from scratch. This is quite problematic as I have to wait for 10 minutes everytime I change something in the code and would like to test it. Anyone else having similar issues?

Thanks!

p.s. There is a typo in your guidelines (https://mc-stan.org/rstantools/articles/minimal-rstan-package.html), as you have the parameter local set to FALSE for both when you want to recompile Stan models and when you do not want to.

Can you please specify the versions of both RStan and devtools you now have on the system? Are you using Windows?

I have limited experience with RStan, but I did experience recompiling issues once on Windows, when I was working out some hiccups Stan Math had on Windows, but those bugs were squashed. This could be related, idk.

Below are versions of relevant libraries. I am not using an explicit Stan Math, I am using the one that comes with RStan.

Package versions:

rstantools_1.5.1
rstan_2.18.2
StanHeaders_2.18.1
roxygen2_6.1.1
devtools_2.0.1