Skip to content
dill edited this page May 18, 2012 · 4 revisions

Instructions (from Jeff) for compiling mrds:

  1. If using Windows, install rtools from the CRAN site and let it add the rtools directory to your path (this is not necessary for Mac).
  2. Install devtools package in R.
  3. Follow instructions with devtools to create a file .Rpackages in your Documents directory. I've attached mine. You'll want to change directory from what mine is. Jeff's .Rpackages:
list(
    default = function(x) {
      file.path("c:/Users/JLaake/git", x, x)
    }
)
  1. If you use the above then, set up mrds source directory in a directory called mrds. So it will look like
mrds
   mrds
      r
     man
      ...
  1. Inside R, type
library(devtools)
load_all("mrds")
install()

Note: Doing check() as part of the devtools process will run the tests as well as the routine R ones.

A useful resource for package development is Hadley Wickham's R development wiki.

Clone this wiki locally