[R] How to share variables

Sergio Martino s.martino at tno.it
Wed Aug 2 15:18:28 CEST 2006


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 all. But this is
impratical when the functions are big.

The environments seems to do the trick but I am not enough familiar with
them to make my ways out.

Is there any example or pointers to easy but complete environment usage?

Thanks in Advance

Sergio Martino

More information about the R-help mailing list