Skip to content
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

Add flag for stanc3 #13

Closed
wants to merge 1 commit into from
Closed

Add flag for stanc3 #13

wants to merge 1 commit into from

Conversation

andrjohns
Copy link

Hi,

This PR adds a compiler flag to your Makevars files which is needed for compatibility with the upcoming version of rstan: -DUSE_STANC3

The Stan-to-c++ transpiler (stanc) was refactored after 2.21, and so different c++ is used in the new rstan package (>= 2.26). Because of this, the flag -DUSE_STANC3 needs to be added when a stan model is being run using the new rstan package (and the new stanc implementation).

This PR adds the compiler flag, which is conditionally set based on the installed rstan version.

Feel free to let me know if you need any more info.

Thanks!
Andrew

@andrjohns
Copy link
Author

Hi,

I'm closing this PR as we're implementing the fix through rstantools, so no changes to your package will be necessary

@andrjohns andrjohns closed this Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant