Description Usage Arguments Details Value See Also Examples
This function evaluates an expression, returning it in a two element list containing its value and a flag showing whether it would automatically print.
1 | withVisible(x)
|
x |
An expression to be evaluated. |
The argument is evaluated in the caller's context.
This is a primitive function.
value |
The value of |
visible |
logical; whether the value would auto-print. |
1 2 3 4 5 6 7 8 9 | x <- 1
withVisible(x <- 1)
x
withVisible(x)
# Wrap the call in evalq() for special handling
df <- data.frame(a = 1:5, b = 1:5)
evalq(withVisible(a + b), envir = df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.