[R] .First.lib

Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com
Sat Nov 18 17:02:41 CET 2006


Greetings:

I’m running R version 2.4.0 (2006-10-03) on WindowsXP in a 3 year old DELL
box with 2 gig.

I have successfully created a zipped package, mh1823_2.1.zip, using R CMD
build --binary mh1823.

R CMD build --binary  automatically adds a file, mh1823, containing
.First.lib and its default function definition.

I would like to supply my own .First.lib function to create menus when the
package is loaded by calling my menu-creator function.  It is easy to do
after the package is installed from mh1823_2.1.zip, but I want my .First.lib
function to be part of mh1823_2.1.zip in the first place.

Is there a way that I can use R CMD build --binary, with its zip file
output, but substitute my .First.lib function for the default?

Thanks for any help.


Charles Annis, P.E.

Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 



More information about the R-help mailing list