An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120927/6d5d9860/attachment.pl>
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:
Hi List, Would you please send me a good link to talk me through on how to write a R package?
There are many, many, many resources: http://lmgtfy.com/?q=writing+r+packages+tutorial Take the first hit. -steve
Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
On 27/09/2012 5:15 PM, Dr. Alireza Zolfaghari wrote:
Hi List, Would you please send me a good link to talk me through on how to write a R package?
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:
On 27/09/2012 5:15 PM, Dr. Alireza Zolfaghari wrote:
Hi List, Would you please send me a good link to talk me through on how to write a R package?
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
... 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
Duncan Murdoch
______________________________________________ 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.