eval_clean(expr, quiet = TRUE)evalq_clean(expr, quiet = TRUE)
eval_clean
this should
already be quoted. For evalq_clean
it will be quoted for you.TRUE
, the default, only the final result and the
any explicitly printed output will be displayed. If FALSE
, all
input and output will be displayed, as if you'd copied and paste the code.TRUE
on success.x <- 1
y <- 2
ls()
evalq_clean(ls())
evalq_clean(ls(), FALSE)
eval_clean(quote({
z <- 1
ls()
}))
Run the code above in your browser using DataLab