-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand the use of CMDSTAN variable #643
Conversation
Codecov Report
@@ Coverage Diff @@
## master #643 +/- ##
==========================================
- Coverage 92.63% 91.16% -1.47%
==========================================
Files 12 12
Lines 3406 3417 +11
==========================================
- Hits 3155 3115 -40
- Misses 251 302 +51
Continue to review full report at Codecov.
|
I tried it out. It seems to be working, but there is still an unnecessary warning when the environment variable is set to a higher-level directory: > Sys.setenv("CMDSTAN" = "~/cmdstanr")
> library(cmdstanr)
CmdStan path set to: /Users/brenton/cmdstanr/cmdstan-2.29.2
This is cmdstanr version 0.5.1
- CmdStanR documentation and vignettes: mc-stan.org/cmdstanr
- CmdStan path: /Users/brenton/cmdstanr/cmdstan-2.29.2
- CmdStan version: 2.29.2
Warning message:
Can't find CmdStan makefile to detect version number. Path may not point to valid installation. |
Ah, that was sloppy testing on my end. Thanks @bwiernik for testing! I think this should now be fixed. In case that no installation is found but the env. variable is set, it will display a warning:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Submission Checklist
Summary
Fixes #638
Expands the use of the
CMDSTAN
environment variable so that if a valid CmdStan installation is not found in theCMDSTAN
path, it is used as the top level installation folder (cmdstan installations are a level below).To test run:
Copyright and Licensing
Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Rok Češnovar
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: