[Rd] Package options

Chris Brien Chris.Brien at unisa.edu.au
Wed Feb 3 14:07:16 CET 2010


Dear all,

I am developing a package foo that has a namespace. I would like to be able to provide an option, say opt, that 

1) is set to a default value when the package is loaded
2) can be set to a different value by the package user
3) is used by functions within the package

How can I achieve this?

Cheers,
 
Chris Brien
Adjunct Senior Lecturer in Statistics
-----
School of Mathematics & Statistics - Mawson Lakes
Phenomics and Bioinformatics Research Centre
University of South Australia
GPO Box 2471
ADELAIDE  5001  South Australia
Phone:  +61 8 8302 5873   Fax:  +61 8 8302 5785
Email:   Chris.Brien at unisa.edu.au 
WEB page:  <http://people.unisa.edu.au/Chris.Brien> 
CRICOS No 00121B 



More information about the R-devel mailing list