-
Notifications
You must be signed in to change notification settings - Fork 1
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
Custom Stan code vignette compilation error on docs pages #82
Comments
I have no idea. |
This error happens because it is trying to compile c++ files with gcc (the c compiler) instead of g++. |
But why is it doing so? This seems to happen now with other models as well, e.g. https://docs.ropensci.org/dynamite/articles/dynamite.html#sec:seatbelt. Same code runs without error locally and in github actions, as well as in r-universe: https://ropensci.r-universe.dev/articles/dynamite/dynamite.html which I though was used in the pkgdown site as well? I can't find exactly the same issue with google, but I've encountered similar issues sometimes when somekind of mismatch with the versions of various packages used by |
Dunno. The include flags (
Something going wrong in Update: You could step through rstan/R/stan.R, which should return a strict C object long before it pulls in the C++ headers. Seems like something there is failing. |
The example is using |
As a workaround in 6a01d3e, I've wrapped all model fits in the vignettes with |
@mpadge We're getting a compilation error on the rOpenSci docs pages for one vignette (see the third code block): https://docs.ropensci.org/dynamite/articles/dynamite_custom.html, could you provide any insight into what might be happening? Curiously though the fit object still seems to be accessible in the next code block unless it is using a cached result somehow. The example runs without issues locally.
The text was updated successfully, but these errors were encountered: