jeromyanglim / learning_r

assorted notes to self while learning R
1 stars 0 forks source link

Make file for roxygen based R package construction? #24

Closed jeromyanglim closed 12 years ago

jeromyanglim commented 12 years ago

An initial script is as follows, where the value of package argument is the name of my R package.

package=mypackage
all:
    Rscript -e 'library(methods); library(roxygen2); roxygenize("$(package)")'
    R CMD INSTALL '$(package)'