alexgutteridge/rsruby — Issue #9: environments (.GlovalEnv & new) 
Author: briseis
Created: 2011-11-25 10:49:19+00:00
State: open

Hi,
Thanks for these very usefull package.

I have a litte difference in R and R in rsruby in variable visibility in environment and .GlovalEnv :

in R :

N <- new.env()
evalq(n<-3, envir=N)
attach(N)
n # return 3
n<- 4
n # return 4
N$n # return 3.

In RsRuby

r = RSRuby.instance
r.eval_R("N<-new.env()")
r.eval_R("evalq(n<-3,envir=N")
r.eval_R("attach(N)")
r.n # return 3
r.eval_R("n<-4")
r.n # return 3 and not 4 : r.n still represent the variable n in the N environment and not the variable n in the .GlovalEnv

Best regards,
Laurent