[R] Communicating from one function to another

hadley wickham h.wickham at gmail.com
Tue Nov 27 06:01:17 CET 2007

On 11/26/07, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
> Others have already answered your direct question but consider that
> what you may want without realizing it is object-oriented programming.

I agree with Gabor, you're not actually looking for a global state,
but a mutable object (explicitly passing non-mutable objects around in
argument lists and returns is called threading state).  I've used the
proto package quite a bit for mutable state, and it adds an often
needed programming paradigm to R.



More information about the R-help mailing list