reporter-accessors {testthat} | R Documentation |
Changes global reporter to that specified, runs code and the returns global reporter back to previous value.
set_reporter(reporter) get_reporter() with_reporter(reporter, code)
reporter |
test reporter to use |
code |
code block to execute |