On Sat, Apr 7, 2012 at 5:01 PM, Mark Heckmann <mark.heckm...@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 ______________________________________________ R-help@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.