powered by
Primarily intended for testing.
winch_call(fun, env = parent.frame())
A function callable without arguments.
The environment in which to evaluate the function call.
The return value of fun().
fun()
winch_stop()
# NOT RUN { foo <- function() { winch_call(bar) } bar <- function() { writeLines("Hi!") } foo() # }
Run the code above in your browser using DataLab