Cmdstanr and R packages with precompiled models

Thanks to rstantools, it is possible to include precompiled Stan/rstan models in R packages. Are there plans to build a similar capability based on cmdstanr alone?

Not possible for CRAN.

1 Like

Yeah like @bgoodri this isn’t going to be possible with CRAN (they won’t have cmdstan on their machines to compile the models), although it could be possible to do something like this for packages installed outside of CRAN. For example, I suppose you could allow people to download pre-compiled models from some repository. So I think the limitation is CRAN but in theory something like this is possible if you offer the pre-compiled models some other way.

1 Like