Skip to content

How to write R package

4 messages · Dr. Alireza Zolfaghari, Steve Lianoglou, Duncan Murdoch +1 more

#
On Thu, Sep 27, 2012 at 5:15 PM, Dr. Alireza Zolfaghari
<ali.zolfaghari at gmail.com> wrote:
There are many, many, many resources:
http://lmgtfy.com/?q=writing+r+packages+tutorial

Take the first hit.

-steve
#
On 27/09/2012 5:15 PM, Dr. Alireza Zolfaghari wrote:
See the ?package.skeleton help page.  After you have run it, follow the 
instructions in the "Read-and-delete-me" file that it will create.

For full details, see the Writing R Extensions manual.

For modifying the package after you've finished the "Read-and-delete-me" 
instructions, just manually add *.R files where the rest of them are, 
and use the prompt() function to produce skeleton documentation.

That's about it, but you can read more if you like in a tutorial I gave 
a few years ago at a UseR meeting in Dortmund:

http://www.statistik.uni-dortmund.de/useR-2008/slides/Murdoch.pdf

Duncan Murdoch
#
On 28.09.2012 14:22, Duncan Murdoch wrote:
... and there are others who gave talks or tutorials about it (inlcuding 
myself).

Nevertheless, I'd recommend to look into the manual "Writing R 
Extensions" which is updated with R and with the changes in the package 
related mechanisms --- while all our talks and tutorials won't get 
updated. Probably Duncan's is still correct, but I want to make this 
remark for the list's archives.

Best,
Uwe Ligges