View source: R/evaluate-promise.R
evaluate_promise | R Documentation |
Evaluate a promise, capturing all types of output.
evaluate_promise(code, print = FALSE)
code |
Code to evaluate. |
A list containing
result |
The result of the function |
output |
A string containing all the output from the function |
warnings |
A character vector containing the text from each warning |
messages |
A character vector containing the text from each message |
evaluate_promise({
print("1")
message("2")
warning("3")
4
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.