I’d like to include a vignette in my package that fits some Stan models. These models take a long time to run. It is against CRAN policy to include options(mc.cores = parallel::detectCores())
. However, I’d like to speed up R CMD build
even if I cannot set the mc.cores option within the vignette. Can I set mc.cores in Rprofile somehow?
The devtools have a command is CRAN which returns false if run at CRAN…the vignettes in rbest use this for different behavior on CRAN servers and when I build the package.
1 Like