From h.wickham at gmail.com  Tue Feb 12 15:03:48 2013
From: h.wickham at gmail.com (Hadley Wickham)
Date: Tue, 12 Feb 2013 08:03:48 -0600
Subject: [Rd] Private environments and/or assignInMyNamespace
In-Reply-To: <511A4785.5070504@bht-berlin.de>
References: <511A4785.5070504@bht-berlin.de>
Message-ID: <CABdHhvFurEGjSQpQ=aNp2u+QHm6qvzQO2Orr1hxdXVqeC19UGQ@mail.gmail.com>

> Here my question: Would it be an option to place the widgets in a private
> environment of my plugin package (then I would have to learn how to create
> one and work with it), or won't they be found that way?

It sounds like you want to maintain state across function calls within
your package, and a private environment is a good solution.  See the
notes on local() at
https://github.com/hadley/devtools/wiki/Environments for a few
details.

Hadley

-- 
Chief Scientist, RStudio
http://had.co.nz/



[Rd] Private environments and/or assignInMyNamespace
Hadley Wickham