Skip to content
Prev 345 / 63424 Next

R-alpha: Environment strangeness

Maybe I'm just not understanding things well enough (actually, that's
why I was fooling around with this in the first place), but:
function () 
{
        e <- sys.frame(sys.parent())
        print(ls(envir = e))
        eval(print(b), e)
}
function () 
{
        b <- 7913
        g()
}
[1] "b"
Error: Object "b" not found

Er? Is "b" in environment "e" or not?