Skip to content

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

  1. Writing R Extensions [url]
    by R Core Team
  2. Creating R Packages: A Tutorial [pdf, 19 pages]
    by Friedrich Leisch
  3. R development master class [San Francisco, Canberra]
    by Hadley Wickham 
  4. 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
  5. How To Make an R Package Based on C++ And Manage It With R-Forge: A Tutorial [pdf]
    by Jose M. Maisog
  6. Creating an R package, using developer/productivity tools [url, Youtube (1:28:53)]
    by Szilard Pafka and Jeroen Ooms
  7. R Package Writing Workshop
    [Youtube (1:02:28), Talk+Slide (slideshare),Download slide (Vcasmo) ]
    by Rory Winston
  8. Creating R packages (url)
    by Nunes
  9. Building R packages for PC, Mac, and Linux or Unix [GitHub wiki]
    by  Christopher Adolph
  10. Building R packages [45 presentation slides, pdf]
    by Derek Young
  11. Create R package from command line prompts [Git Hub]
    by  milktrader
  12. Tips for R Package Creation
    by Tyler Rinker

For Mac useRs

  1. R for Mac OS X Developer’s Page – Building R [url]
    by AT&T
  2. Making R packages for the Mac: A simplified guide [url]
    by William Revelle

For Windows PC useRs

  1. Building R packages for Windows [url]
    by Rob J Hyndman
  2. Building R packages in Windows [url]
    by Karl W Broman

For Linux useRs

  1. Building Microsoft Windows Versions of R and R packages under Intel Linux [pdfMakefile]
    by Jun Yan and A. J. Rossini

Related posts

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 2,784 other followers

%d bloggers like this: