
Last chance! 50% off unlimited learning
Sale ends in
evaluate
a promise, returning the
result, test, messages and warnings that the code creates in a list.
It is used to evaluate code for all test that tests, ensuring that
(as much as possible) any spurious output is suppressed during the
testing process.evaluate_promise(code, print = FALSE)
TRUE
and the result of evaluating code
is
visible this will print the result, ensuring that the output of printing
the object is included in the overall outputevaluate_promise({
print("1")
message("2")
warning("3")
4
})
Run the code above in your browser using DataLab