eval_clean

0th

Percentile

Evaluate code in a clean R session.

Evaluate code in a clean R session.

Usage
eval_clean(expr, quiet = TRUE)

evalq_clean(expr, quiet = TRUE)

Arguments
expr
an R expression to evaluate. For eval_clean this should already be quoted. For evalq_clean it will be quoted for you.
quiet
if 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.
Value

  • An invisible TRUE on success.

Aliases
  • eval_clean
  • evalq_clean
Examples
x <- 1
y <- 2
ls()
evalq_clean(ls())
evalq_clean(ls(), FALSE)
eval_clean(quote({
  z <- 1
  ls()
}))
Documentation reproduced from package devtools, version 1.11.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.