From murdoch at stats.uwo.ca  Tue Mar 28 17:59:31 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Tue, 28 Mar 2006 10:59:31 -0500
Subject: [Rd] How to set options() when a package without a name space
 is	loaded?
In-Reply-To: <59d7961d0603280718k624b2336w1433400a7cd3cb3@mail.gmail.com>
References: <59d7961d0603280718k624b2336w1433400a7cd3cb3@mail.gmail.com>
Message-ID: <44295D63.2030709@stats.uwo.ca>

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



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