withVisible(x)
x
after evaluation.expression
object, rather
an (unevaluated function) call
, is evaluated in the
caller's context. This is a primitive function.invisible
, eval
;
withAutoprint()
calls source()
which
itself uses withVisible()
in order to correctly
“auto print”.x <- 1
withVisible(x <- 1) # *$visible is FALSE
x
withVisible(x) # *$visible is TRUE
# Wrap the call in evalq() for special handling
df <- data.frame(a = 1:5, b = 1:5)
evalq(withVisible(a + b), envir = df)
Run the code above in your browser using DataLab