Re: [R] How to share variables

2006-08-22 Thread Sergio Martino
Hi Thanks again. I hope not to waste to much of your time. I delete some lines of your answer Each time myfun is run a new environment is created to hold its local variables. The parent of that environment is e in this example by construction. So e and the environment that is temporarily

Re: [R] How to share variables

2006-08-22 Thread Gabor Grothendieck
On 8/22/06, Sergio Martino [EMAIL PROTECTED] wrote: Hi Thanks again. I hope not to waste to much of your time. I delete some lines of your answer Each time myfun is run a new environment is created to hold its local variables. The parent of that environment is e in this example by

Re: [R] How to share variables

2006-08-21 Thread Sergio Martino
Thanks for your fast replay and sorry for my late one (I was on holidays) The structure I would like to emulate (the fortran common statement) is a different from what you are describing. The examples scoping and the links to OO programming show the use of local variable which are tied to the

Re: [R] How to share variables

2006-08-21 Thread Gabor Grothendieck
On 8/21/06, Sergio Martino [EMAIL PROTECTED] wrote: Thanks for your fast replay and sorry for my late one (I was on holidays) The structure I would like to emulate (the fortran common statement) is a different from what you are describing. The examples scoping and the links to OO programming

Re: [R] How to share variables

2006-08-21 Thread Gabor Grothendieck
On 8/21/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 8/21/06, Sergio Martino [EMAIL PROTECTED] wrote: Thanks for your fast replay and sorry for my late one (I was on holidays) The structure I would like to emulate (the fortran common statement) is a different from what you are

[R] How to share variables

2006-08-02 Thread Sergio Martino
Hi, I would like to realize in R a structure like the fortran common ie a way to declare some variable that can only be accessed by all the functions which need to. Browsing the archive it seems that the simplest way is to declare the variables and the functions in a big function which wraps

Re: [R] How to share variables

2006-08-02 Thread Gabor Grothendieck
On 8/2/06, Sergio Martino [EMAIL PROTECTED] wrote: Hi, I would like to realize in R a structure like the fortran common ie a way to declare some variable that can only be accessed by all the functions which need to. Browsing the archive it seems that the simplest way is to declare the