-
Notifications
You must be signed in to change notification settings - Fork 108
Suppress reports #168
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
Suppress reports #168
Conversation
@kaneplusplus Thanks for the PR! I'll review it tomorrow. |
@kaneplusplus I was able to reproduce this strange behavior. Turns out it was a bug in callr 3.3.0, which was released to CRAN on July 4th. It polluted the global environment with the environments |
Thanks very much for tracking this down! It was, in part, what motivated the pull request. I'll update. I would still be keen to suppress the reports but if you want to discuss further or even not incorporate, it's OK. I'm happy to continue sending pull requests that may be helpful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this took so long for me to review. I'm having difficulty troubleshooting some recent changes in the upstream dependencies (which is why the CI builds are currently a mess).
How about changing the name of the setting to suppress_report
? This way it is clear that the user could also use it in the YAML header of a specific Rmd file to only disable the report in that file.
Also, could you please add the default setting of |
@kaneplusplus Please let me know if you have any questions or issues for updating your PR. I fixed the failing tests on the main master branch, so you'll want to pull these changes to your fork. I also edited |
@jdblischak Sorry for the delay. Yes, I'm happy to make the changes. I'll update today. |
I'm running behind on tasks and probably won't get to this by Sunday. Again, apologies for the delay. |
No worries! There's absolutely no hurry because this new feature isn't blocking the addition of any other feature. |
OK, the changes have been made. Thanks for the review. |
Thanks for making these changes! Unfortunately I seemed to have confused GitHub. I rebased your commits onto the current master and force pushed these to the master branch of your fork. But now GitHub has closed this PR, and your commits are no longer on your fork. https://github.com/presagia-analytics/workflowr/commits/master I'll fix this in a second, but first I'm going to investigate why GitHub failed. |
@kaneplusplus Could you please check two things for me?
I apologize for this hiccup. And for your peace of mind, I've temporarily saved your commits in a branch. Once you make the changes to the settings above, I should be able to fix this on GitHub. |
Also, would you like to be added as an official contributor? If yes, please let me know if I should use your presagia.ai email or your yale.edu email. Thanks! |
OK, I think I've resubmitted. Please let me know if it's not sufficient. Happy to work through any issues with you. |
Since I borked the GitHub workflow, would it be ok if I closed the Pull Requests and just pushed your commits manually to master?
Please let me know if you'd like to be a contributor and what contact info I should use. |
Sure. It's no problem at all. I would love to be added as a contributor. I'm using workflowr a lot and I'll definitely have more updates in the coming weeks. My contact info is below.
|
Great! Thanks for your contribution.
That's awesome! I look forward to your future updates, and I promise it'll be a smoother process next time :-) Also, if you are going to be working on multiple different updates, I recommend implementing each on a separate feature branch, e.g. something like
This way you can make changes to each feature based on feedback without affecting the other Pull Requests. |
Also, since the master branch of your fork and the main master branch have gotten out of sync, it might be easiest for you to delete your current fork of workflowr and re-fork it on GitHub. This will ensure that your future Pull Requests will merge nicely. |
@kaneplusplus I added some docs and more tests, and also added you as a contributor. |
Summary
This package is super useful. Thanks very much for all of your work.
I'm submitting a pull request that provides the suppression of the reproducibility reports. I'm finding the feature useful for two reasons. First, while the report is great to find problems outside the scope of the execution of individual code blocks, but it is not always needed when presenting to a non-technical audience. It can even be slightly distracting, especially when not all of the checks are passed. Second, I have a site that is triggering a check-failure because of global variables (data and env), which my Rmarkdown files don't create. I don't think it's a problem with either the execution of the code chunks or the construction of the documents, and it's not clear how to debug.
The changes do not alter the current behavior. The difference is that if
appears in the _workflowr.yml file, then the report is not included in the output html. Testing is included.
Checklist
Details