eval_safe | R Documentation |
evaluate language (any code within {}) safely
eval_safe(language, errorReturn = NA, envir = rlang::caller_env())
language |
A language. Any codes as long as inside {} |
errorReturn |
default=NA. What would be returned when the language can not be evaluated. |
envir |
default=caller environment. Where to evaluate the language |
eval_safe({a <- 3; b<-a+4})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.