Re: [R] How to pack my stuff into a package (library, collection)?

From: mel <mel_at_altk.com>
Date: Mon, 07 Apr 2008 09:17:00 +0200

Tribo Laboy a écrit :

> Hello,
> I am new useR, I have written some functions, which I currently use by
> "source"-ing them from the files.
> That's OK, but when I my functions start counting in the tens and
> hundreds I'd be glad to be able to type
> "help.search("my_obscure_fun")" and get a sensible reply. I also want
> to be able to load them as a package at startup and not have to
> "source" each one individually.

Why not simply use a function doing that. (That's how I proceed).
You can call it in .First()

> I read through the "Writing R
> Extensions" file, but I am overwhelmed with the vast amount of
> prescribed detail that Extension Authors must follow - directory
> structure, file structure, etc. Luckily, I found the "prompt"
> function, which helps in writing of help-files in the form of "fill-in
> the blanks". But that's only for the help-files.

I did an horrible hack (rerouting an existing package help directory) for simply having ? callable html help files for my own functions. Sad, but seems simpler than downloading X Mo of stuff just for that.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 07 Apr 2008 - 07:26:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Apr 2008 - 07:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive