-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
stanc: preserve blank lines in source #1124
base: develop
Are you sure you want to change the base?
Conversation
@bgoodri the failures in github actions seem to be unrelated. Do you think this could make it into a CRAN patch in the near future? |
Yes, although StanHeaders and / or rstanarm are more critical at the moment. |
Sure. I'm going to try to take another look at the rstanarm issue tomorrow, is there something else with StanHeaders? |
Well, we still do not know why geostan stops compiling, although the other package that was stopping is going all the way through again. |
@bgoodri re geostan, that looks a lot like what happens to ctsem (but ctsem is worse, https://cran.r-project.org/web/checks/check_results_ctsem.html ) , always assumed it was just timeout settings on CRAN boxes... |
Yeah, |
This is unrelated to the rstan issue with the javascript parser not preserving blank lines, but whatever. Has anyone gotten a notice from CRAN saying their package is subject to removal due to the mysterious halting of the C++ compiler? |
It's been a vague concern (of mine) for years with ctsem, at some point years ago I had to remove a bunch of features to get it working on all boxes, as I had the unwanted attention of a rather infamous cran persona. Since then the termination errors have often been around, but (i think) variable in that sometimes all builds succeed, and no removal notices. |
Summary:
This adds the
blank.lines.skip=FALSE
argument toscan
used instanc_process
, which fixes the issue where line numbers reported by stanc did not match the source in compiler or runtime errors.Intended Effect:
Closes #1123
How to Verify:
The code in #1123 now yields a straight line plot as expected
Side Effects:
None
Documentation:
None
Reviewer Suggestions:
@bgoodri @andrjohns
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):
Simons Foundation
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: