You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have cmdstan installed to a non-default directory (I'm on Windows and the default location is in a cloud storage folder). This means that I have to change my .Renviron every time I install a new version of cmdstan, rather than having the latest version automatically detected.
Describe the solution you'd like
I'd like to be able to set my CMDSTAN variable in .Renviron to be the .cmdstanr directory, rather than specific version directories. That way, the default when I call cmdstan could be to use the latest version in the directory.
To accomplish this, if the CMDSTAN path doesn't contain the CmdStan makefile, the logic from cmdstanr::cmdstan_default_path() would be run in the directory to find the latest version of cmdstan there.
The text was updated successfully, but these errors were encountered:
remotes::install_github("stan-dev/cmdstanr@cmdstan-variable-refactor")
Sys.setenv("CMDSTAN"="/top/level/folder/of/cmdstan/installs") # or set it in .Renviron
library(cmdstanr)
It seems to be working, but there is still a warning when the environment variable is set to a higher-level directory:
> Sys.setenv("CMDSTAN"="~/cmdstanr")
> library(cmdstanr)
CmdStanpathsetto:/Users/brenton/cmdstanr/cmdstan-2.29.2Thisiscmdstanrversion0.5.1-CmdStanRdocumentationandvignettes:mc-stan.org/cmdstanr-CmdStanpath:/Users/brenton/cmdstanr/cmdstan-2.29.2-CmdStanversion:2.29.2Warningmessage:Can't find CmdStan makefile to detect version number. Path may not point to valid installation.
Is your feature request related to a problem? Please describe.
I have cmdstan installed to a non-default directory (I'm on Windows and the default location is in a cloud storage folder). This means that I have to change my .Renviron every time I install a new version of cmdstan, rather than having the latest version automatically detected.
Describe the solution you'd like
I'd like to be able to set my CMDSTAN variable in .Renviron to be the
.cmdstanr
directory, rather than specific version directories. That way, the default when I call cmdstan could be to use the latest version in the directory.To accomplish this, if the CMDSTAN path doesn't contain the CmdStan makefile, the logic from
cmdstanr::cmdstan_default_path()
would be run in the directory to find the latest version of cmdstan there.The text was updated successfully, but these errors were encountered: