Add dedicated hpp generation step for future cmdstan compatibility#863
Add dedicated hpp generation step for future cmdstan compatibility#863rok-cesnovar merged 3 commits intomasterfrom
Conversation
|
Also a good reminder to set up the CI to test against cmdstan |
|
You can also update your make command to "make foo.hpp foo" and it should build both the executable and hpp (if you also need the .o you can list it there as well) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #863 +/- ##
==========================================
- Coverage 88.36% 88.35% -0.01%
==========================================
Files 12 12
Lines 4528 4527 -1
==========================================
- Hits 4001 4000 -1
Misses 527 527 ☔ View full report in Codecov by Sentry. |
Ah good call, that should be a bit cleaner, will do |
Hmm it looks like Given that this indicates some flakiness with the |
|
@rok-cesnovar just a heads up that we'll need this in before the 2.34 release |
|
Reviewing this later today, thanks for the heads up! |
rok-cesnovar
left a comment
There was a problem hiding this comment.
Actually, had some downtime just now. This looks great to me!
Submission Checklist
Summary
As discovered in this thread on the forum, the next version of
cmdstanwill automatically delete the.hppfile during themakeprocess. This causes R to error when we try to read it in for later use in the model-methods compilation.This PR adds a separate step for generating and reading the hpp file into the Model object
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):
Andrew Johnson
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: