A one-time setup helper, in the spirit of usethis's use_* functions, that
declares flexstanr as a dependency of the host package you run it from. It
adds flexstanr (and rstan, the default backend) to the host's Imports and,
until flexstanr is on CRAN, an interim Remotes entry so remotes / pak
can install it from GitHub.
No further wiring is needed: the host calls fit_model() and the backend_*
accessors directly, and flexstanr resolves the host's own compiled models
automatically from the calling package.
Arguments
- path
path to the host package's root (the directory containing its
DESCRIPTION). Defaults to the working directory.- remote
the GitHub
owner/repoused for the interimRemotesentry while flexstanr is pre-CRAN.- on_cran
set
TRUEonce flexstanr is on CRAN to skip the interimRemotesentry; a plainImportsdependency is then enough.