From Chris.Brien at unisa.edu.au  Wed Feb  3 14:07:16 2010
From: Chris.Brien at unisa.edu.au (Chris Brien)
Date: Wed, 3 Feb 2010 23:37:16 +1030
Subject: [Rd] Package options
Message-ID: <EC96E350A5D6444B82CBD8DA338F017508A107AF@ITUPC-EX1MBOX.UniNet.unisa.edu.au>

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 



[Rd] Package options
Chris Brien