[R-pkg-devel] mget with Inherits Not Finding Variable in Caller

Dario Strbenac d@tr7320 @end|ng |rom un|@@ydney@edu@@u
Wed Dec 1 00:00:01 CET 2021


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, 1)
Error: value for ‘.iteration’ not found

--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia


More information about the R-package-devel mailing list