Learn R Programming

drake (version 4.2.0)

drake-package: Drake is a workflow manager and build system, a scalable solution for reproducibility and high-performance computing.

Description

Drake is a workflow manager and build system, a scalable solution for reproducibility and high-performance computing.

Arguments

References

https://github.com/wlandau-lilly/drake

Examples

Run this code
# NOT RUN {
library(drake)
load_basic_example()
make(my_plan) # Build everything.
make(my_plan) # Nothing is done because everything is already up to date.
reg2 = function(d){ # Change one of your functions.
  d$x3 = d$x^3
  lm(y ~ x3, data = d)
}
make(my_plan) # Only the pieces depending on reg2() get rebuilt.
readd(small) # Read/load from the cache.
loadd(large)
head(large)
clean() # Restart from scratch
make(my_plan, jobs = 2) # Distribute over 2 parallel jobs.
clean()
make(my_plan, jobs = 4, parallelism = "Makefile") # 4 parallel R sessions.
make(my_plan, jobs = 4, parallelism = "Makefile") # Everything up to date.
clean(destroy = TRUE) # Totally remove the cache.
unlink(c("Makefile", "report.Rmd"))
# }

Run the code above in your browser using DataLab