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, start_end_reporter = TRUE)
test reporter to use
code block to execute
whether to start and end the reporter
The with_reporter()
function returns the reporter that has been used
for running the code.