[R] What is the most efficient practice to develop an R package?

Peng Yu pengyu.ut at gmail.com
Mon Oct 26 15:29:07 CET 2009

I am reading Section 5 and 6 of

It seems that I have to do the following two steps in order to make an
R package. But when I am testing these package, these two steps will
run many times, which may take a lot of time. So when I still develop
the package, shall I always source('linmod.R') to test it. Once the
code in linmod.R is finalized, then I run the following two steps?

I'm wondering what people usually do when developing packages.

1. Run the following command in R to create the package
package.skeleton(name="linmod", code_files="linmod.R")

2. Run the following command in shell to install
R CMD INSTALL -l /path/to/library linmod

More information about the R-help mailing list