winch_call {winch} | R Documentation |
Primarily intended for testing.
winch_call(fun, env = parent.frame())
fun |
A function callable without arguments. |
env |
The environment in which to evaluate the function call. |
The return value of fun()
.
foo <- function() {
winch_call(bar)
}
bar <- function() {
writeLines("Hi!")
}
foo()