Skip to content
Prev 59181 / 63421 Next

all.equal applied to function closures

One more comment:  it might be worthwhile reporting on a case where 
identical(e1, e2) fails when those are the environments associated with 
two functions (though I think not by default in all.equal.environment).

Functions can modify variables in their environment, so examples like 
the open.account example in the R-intro manual would distinguish between 
ross and robert even if the balances matched.

Duncan Murdoch
On 01/12/2020 10:37 a.m., Bill Dunlap wrote: