What a body runs after a call of a closure within it sees the global state that closure changes, which the body, processed before it learned of the callee, does not know of: f <- function() { g(); print(pi) } with g setting the digits option.
f <- function() { g(); print(pi) }
g
digits
What a body runs after a call of a closure within it sees the global state that closure changes, which the body, processed before it learned of the callee, does not know of:
f <- function() { g(); print(pi) }withgsetting thedigitsoption.