From hb at maths.lth.se  Tue Mar 28 17:39:52 2006
From: hb at maths.lth.se (Henrik Bengtsson)
Date: Tue, 28 Mar 2006 17:39:52 +0200
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: <59d7961d0603280739y477ed387p348fda1e27aa2464@mail.gmail.com>

Don't worry.  Sorry for that, I should of course know that it is in
.First.lib() as documented Section 1.1.4 on "Package subdirectories"
in "Writing R Extensions"; "A common use is to call library.dynam()
inside .First.lib() to load compiled code: another use is to call
those functions with side effects".

The reason why it "didn't work" was that I mispelled the option in
.First.lib().  It's time for me to go home now ;)

Henrik


On 3/28/06, Henrik Bengtsson <hb at maths.lth.se> wrote:
> Hi,
>
> how do I set options() when loading a package *without* a name space?
> Is it possible?
>
> 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
>



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