))}
a(7)
b <- function(y) {eval.parent(aa)}
a(7) # aa not found: when passed to eval.parent, it is evaluated first (unless
substituted)
From: R-package-devel on behalf of
Simon Urbanek
Sent: Wednesday, December 1, 2021 00:25
To: Dario Strbenac
Cc: r-packag
Dario,
> On Dec 1, 2021, at 12:00 PM, Dario Strbenac
> wrote:
>
> Good day,
>
> What I am misunderstanding about the inherits = TRUE option of mget? I expect
> the small example to work.
>
> f <- function(x, .iteration = i) g()
> g <- function() mget(".iteration", inherits = TRUE)
> f(10