drakepkgexample
drakepkgexample aims at providing a simple example on how to use drake
and R package structures to create and share reproducible workflows.
You can install drakepkgexample using:
devtools::install_github("Rekyt/drakepkgexample")
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())
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()")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.