[R] global variables in a function

Gabor Grothendieck ggrothendieck at gmail.com
Thu Dec 10 17:16:24 CET 2009


I think you are looking for a macro facility.   See defmacro in gtools
which is based on Thomas Lumley's function of the same name whose
article you can find in back issues of R News.

On Thu, Dec 10, 2009 at 11:00 AM, Keith Jones <keithlj at keithljelp.com> wrote:
> Y'all,
>
> I would like to have most of the variables in my function to be global
> instead of local.  I have not found any references that tell me now to do
> that.  If I have missed a reference please excuse me and tell me what I have
> missed.
>
> Thanks,
>
> Keith Jones
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list