Update handling of show_messages, add show_exceptions#746
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 |
rok-cesnovar
left a comment
There was a problem hiding this comment.
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.
jgabry
left a comment
There was a problem hiding this comment.
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: