This gist demonstrates a strange behavior in the proto
package for R when functions are dynamically invoked via do.call
. When do.call
is invoked inside a proto
object, variables that belong to a function's closure are not visible, even though a naive navigation of the environment chain shows these variables to be present. This problem does not occur when do.call
is used outside of proto
.
The problem is isolated to a testthat
test in test-cmd.r
.