How to develop R packages [resources]
One of the advantages of R is its add-on packages which are now 3,759 packages freely available in CRAN (May 1, 2012). I have been using R for my research since 2010. These packages have brought me to R. It is also the main reason why I am mainly use R (90%) for my research and teaching. Great packages like ggplot2 or iplot (for graphics) as well as sem or lavaan for (Structural Equation Model) are the good examples why many people are migrating to R.
Hence, I also would like to contribute to R more by writing some packages that would be useful to my subject areas (Economics, Supply Chain Management and Tourism). I wish I can have three packages (hopefully called econ, scm, and tour) that contains data sets, functions that help researchers, teachers and students in my fields benefit the uses of R in the future.
As I have no experience in writing any software or computer package before, I have search around the Internet and as usual there are lots of stuffs on how to create a package in R. Followings are the list of resources I found. Hope that one who also want to write an package will find the list useful.
==================================================================================================
*UPDATE (23 Oct 2012): I just found a new feature of R Studio for package development (with RStudio v0.97 or higher). I believe that this is gonna be a big hit soon.
Useful resources for creating R packages / extensions
General guides / tutorials
- Writing R Extensions [url]
by R Core Team - Creating R Packages: A Tutorial [pdf, 19 pages]
by Friedrich Leisch - R development master class [San Francisco, Canberra]
by Hadley Wickham - Creating R Packages, Using CRAN, R-Forge, And Local R Archive Networks And Subversion (SVN) Repositories (pdf, ppt, 2009-05-04, 45 slides)
by Spencer Graves and Sundar Dorai-Raj - How To Make an R Package Based on C++ And Manage It With R-Forge: A Tutorial [pdf]
by Jose M. Maisog - Creating an R package, using developer/productivity tools [url, Youtube (1:28:53)]
by Szilard Pafka and Jeroen Ooms - R Package Writing Workshop
[Youtube (1:02:28), Talk+Slide (slideshare),Download slide (Vcasmo) ]
by Rory Winston - Creating R packages (url)
by Nunes - Building R packages for PC, Mac, and Linux or Unix [GitHub wiki]
by Christopher Adolph - Building R packages [45 presentation slides, pdf]
by Derek Young - Create R package from command line prompts [Git Hub]
by milktrader - Tips for R Package Creation
by Tyler Rinker
For Mac useRs
- R for Mac OS X Developer’s Page – Building R [url]
by AT&T - Making R packages for the Mac: A simplified guide [url]
by William Revelle
For Windows PC useRs
- Building R packages for Windows [url]
by Rob J Hyndman - Building R packages in Windows [url]
by Karl W Broman
For Linux useRs
- Building Microsoft Windows Versions of R and R packages under Intel Linux [pdf, Makefile]
by Jun Yan and A. J. Rossini