-
-
Notifications
You must be signed in to change notification settings - Fork 65
Update handling of show_messages, add show_exceptions #746
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
Conversation
|
This PR is technically changing user-facing behaviour, so it should probably get signed off by both @jgabry and @rok-cesnovar. The current value of Is that alright with both of you or should we keep it as a single |
Codecov Report
@@ Coverage Diff @@
## master #746 +/- ##
==========================================
- Coverage 86.20% 86.20% -0.01%
==========================================
Files 12 12
Lines 4082 4095 +13
==========================================
+ Hits 3519 3530 +11
- Misses 563 565 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
I like this. It does change user-facing outputs, but I think the current show_messages was not doing everything it should have been, so most users were using suppress... R functions anyways in cases where show_messages would have been applicable.
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.
I like this. It does change user-facing outputs, but I think the current
show_messageswas not doing everything it should have been, so most users were using suppress... R functions anyways in cases where show_messages would have been applicable.
Agree!
Submission Checklist
Summary
This PR addresses #718 and #646 by adding a
show_exceptionsargument to thesample()andsample_mpi()methods, and also expands the use ofshow_messages=FALSEto completely suppress all printing of non-errors.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):
Andrew Johnson
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: