wlandau / instantiate

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

Roadblocks installing on corporate systems #8

Closed wlandau closed 1 year ago

wlandau commented 1 year ago

In my company's centrally managed R environment, it is not possible to set environment variables at installation, and they are reluctant to set new niche envvars for everyone. So there needs to be a way to have instantiate install with CmdStan automatically without any other input, but also disable this on CRAN. Tricky.

wlandau commented 1 year ago

Trying to write a .github/workflows/build-internal.yaml script to create a tarball of the package which always installs CmdStan internally. Not working yet.

wlandau commented 1 year ago

I think I fixed it by adding a special install-internal.zip to each release. The file contains a tarball that always uses the "internal" installation method, regardless of the CMDSTAN_INSTALL environment variable.