README.md

drakepkgexample

drakepkgexample aims at providing a simple example on how to use drake and R package structures to create and share reproducible workflows.

Installation

You can install drakepkgexample using:

devtools::install_github("Rekyt/drakepkgexample")

Usage

To launch the workflow, install the package then run

library("drake")
library("drakepkgexample")

make(my_plan())

Alternatively you can clone this repository move it in your preferred location and then run (while being in drakepkgexample folder):

devtools::load_all()
drake::make(my_plan())

Parallel use

This package has been developed as an example of drake workflow as an R package, specifcally because of parallelism issues (see ropensci/drake#357). To launch the workflow in parallel you can use:

library("drake")
make(my_plan(), jobs = 2, prework = 'library("drakepkgexample"))'

or:

drake::make(my_plan(), jobs = 2, prework = "devtools::load_all()")


Rekyt/drakepkgexample documentation built on May 16, 2019, 7:21 a.m.