Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environments (.GlovalEnv & new) #9

Open
briseis opened this issue Nov 25, 2011 · 0 comments
Open

environments (.GlovalEnv & new) #9

briseis opened this issue Nov 25, 2011 · 0 comments
Assignees

Comments

@briseis
Copy link

briseis commented Nov 25, 2011

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

@ghost ghost assigned alexgutteridge Nov 29, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants