wlandau / instantiate

Pre-compiled CmdStan models in R packages
https://wlandau.github.io/instantiate/
Other
22 stars 2 forks source link

Proactively detect CRAN? #14

Closed wlandau closed 9 months ago

wlandau commented 10 months ago

It would be nice if instantiate could auto-detect that it is not on CRAN, and then do an internal install of CmdStan. This would make things completely automatic for users while still appeasing CRAN checks. But unfortunately, there seems to be no completely automatic way to detect CRAN. The current practice is for a user to set Sys.setenv(NOT_CRAN = "true") but otherwise assume R is running on CRAN. It would be great if there were a way to do this that is "opt-in" and not "opt-out".