powered by
Evaluate a promise, capturing all types of output.
evaluate_promise(code, print = FALSE)
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
Code to evaluate.
evaluate_promise({ print("1") message("2") warning("3") 4 })
Run the code above in your browser using DataLab