
Last chance! 50% off unlimited learning
Sale ends in
Evaluate a promise, capturing all types of output.
evaluate_promise(code, print = FALSE)
Code to evaluate.
A list containing
The result of the function
A string containing all the output from the function
A character vector containing the text from each warning
A character vector containing the text from each message
# NOT RUN {
evaluate_promise({
print("1")
message("2")
warning("3")
4
})
# }
Run the code above in your browser using DataLab