[R] assigment operator question
Gabor Grothendieck
ggrothendieck at gmail.com
Sun Apr 8 00:18:48 CEST 2012
On Sat, Apr 7, 2012 at 5:01 PM, Mark Heckmann <mark.heckmann at gmx.de> wrote:
> Thanks! I'll try to stick to that advice!
> Maybe there is a better way... Here is what I want:
>
> I want to save some default settings for a package.
> The user can change these using a function similar to par().
> I do not want to use options() here as it will be quite a lot of parameters.
> I was thinking about an invisible object in the global environment and using <<- or assign() to change the settings...
>
> What other roads are there to go?
>
Another possibility is to store the global information in an
environment in your package's namespace. See .LatticeEnv in the
lattice package's source code for an example.
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
More information about the R-help
mailing list