[Rd] How to set options() when a package without a name space is loaded?

Duncan Murdoch murdoch at stats.uwo.ca
Tue Mar 28 17:59:31 CEST 2006


On 3/28/2006 10:18 AM, Henrik Bengtsson wrote:
> Hi,
> 
> how do I set options() when loading a package *without* a name space? 
> Is it possible?

Use .First.lib().  It is mentioned in the R-exts section you looked in 
below, but its purpose is not.

Duncan Murdoch

> 
> I though this one was a common question, but I could not find it in
> the FAQ, in the help nor in the r-help/r-devel archives.  Section
> 1.6.3 on "Load hooks" in "Writing R Extensions" says that this should
> be done using the .onLoad hook, but that does only apply to packages
> name spaces, cf. ?.onLoad
> 
> Thanks
> 
> Henrik
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list