-
Notifications
You must be signed in to change notification settings - Fork 3
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
Autogenerate code for stan models on installation #24
Conversation
@andrjohns This is really great - thanks! I'm having some trouble getting it to work though. I'm currently using:
FWIW, the configure script chooses your new stan script here
I wonder if |
Ah I see my mistake in the conditional, I'll push the fix now |
OK thanks, that fixes the build problem for current CRAN versions of rstan and StanHeaders. I could also update to
So far I have no clue what could cause this. |
Can you try the tests with the 2.26 versions and just the CRAN tmbstan? So I can rule out whether it's these modifications or changes to the Stan source that are the culprit |
With |
It looks like this might partly be due to changes in how the chain values are extracted, if I change the test to using
|
Looks like that's a red herring unfortunately, changing the seed shows the mismatch still |
Got it! It's something to do with the Note that the tests fail with the CRAN |
Wow, thanks for spotting this - I would never have guessed to try
Weird, I actually find the opposite: After using |
Well no complaints from me for on a passing test! Let me know if you run into any other issues with this PR, it would be great to get it on CRAN soon to minimise the transition from 2.26 -> 2.31 |
Once StanHeaders 2.31 (eventually) is distributed, the
model.hpp
file in your package will fail to compile. This PR updates your package to use theautogen.R
script to generate and appropriately modify the .hpp for each upcoming combination ofrstan
andStanHeaders
.Let me know if you have any questions/concerns. Thanks!