[Rd] How to set options() when a package without a name space is loaded?
Henrik Bengtsson
hb at maths.lth.se
Tue Mar 28 17:39:52 CEST 2006
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
>
More information about the R-devel
mailing list