Learn R Programming

⚠️There's a newer version (7.13.11) of this package.Take me there.

drake (version 6.1.0)

A Pipeline Toolkit for Reproducible Computation at Scale

Description

A general-purpose computational engine for data analysis, drake rebuilds intermediate data objects when their dependencies change, and it skips work when the results are already up to date. Not every execution starts from scratch, and completed projects have tangible evidence that they are reproducible. Extensive documentation, from beginner-friendly tutorials to practical examples and more, is available at the reference website and the online manual .

Copy Link

Version

Install

install.packages('drake')

Monthly Downloads

1,313

Version

6.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Landau William

Last Published

October 26th, 2018

Functions in drake (6.1.0)

clean_mtcars_example

Clean the mtcars example from drake_example("mtcars")
bind_plans

Row-bind together drake plans
available_hash_algos

List the available hash algorithms for drake caches.
build_drake_graph

Create the igraph dependency network of your project.
cache_namespaces

List all the storr cache namespaces used by drake.
Makefile_recipe

For make(..., parallelism = "Makefile"), see what your Makefile recipes will look like in advance.
cache_path

Return the file path where the cache is stored, if applicable.
config

Deprecated function config
analyses

Deprecated function analyses
build_times

List the time it took to build each target/import.
built

List all the built targets (non-imports) in the cache.
build_graph

Deprecated function build_graph
configure_cache

Configure the hash algorithms, etc. of a drake cache.
cached

Enumerate cached targets or check if a target is cached.
check

Deprecated function check
check_plan

Check a workflow plan data frame for obvious errors.
clean

Remove targets/imports from the cache.
default_system2_args

Deprecated function default_system2_args
cmq_staged_build

Build a target using the clustermq_staged backend
debug_and_run

Run a function in debug mode.
default_Makefile_args

code_to_plan

Turn an R script file or knitr / R Markdown report into a drake workflow plan data frame.
cleaned_namespaces

default_verbose

Default verbosity for drake
default_recipe_command

Show the default recipe command for make(..., parallelism = "Makefile").
default_short_hash_algo

Return the default short hash algorithm for make().
cmq_build

Build a target using the clustermq backend
dataframes_graph

Deprecated function dataframes_graph
deps_code

List the dependencies of a function, workflow plan command, or knitr report source file.
deps_targets

Deprecated.
do_prework

deps_target

List the dependencies of one or more targets
diagnose

Get diagnostic metadata on a target.
dataset_wildcard

drake-package

drake is a pipeline toolkit (https://github.com/pditommaso/awesome-pipeline) and a scalable, R-focused solution for reproducibility and high-performance computing.
default_long_hash_algo

Return the default long hash algorithm for make().
default_Makefile_command

default_cache_path

Return the default file path of the drake/storr cache.
default_parallelism

drake_gc

Do garbage collection on the drake cache.
drake_hpc_template_files

List the available example template files for deploying work to a cluster / job scheduler.
drake_future_task

Task passed to individual futures in the "future" backend
drake_hpc_template_file

Write a template file for deploying work to a cluster / job scheduler.
drake_batchtools_tmpl_file

Deprecated. Get a template file for execution on a cluster.
default_graph_title

Return the default title for graph visualizations
drake_ggraph

Show a ggraph/ggplot2 representation of your drake project.
default_hook

Deprecated.
drake_graph_info

dependency_profile

Find out why a target is out of date.
drake_build

Build/process a single target or import.
examples_drake

Deprecated function examples_drake
expand

Deprecated function expand
failed

file_in

Declare the file inputs of a workflow plan command.
drake_meta

Compute the initial pre-build metadata of a target or import.
drake_plan

in_progress

List the targets that either (1) are currently being built during a make(), or (2) were being built if the last make() quit unexpectedly.
imported

List all the imports in the drake cache.
deps

Deprecated. List the dependencies of a function, workflow plan command, or knitr report source file.
drake_plan_source

Show the code required to produce a given workflow plan data frame
drake_config

drake_example

Download and save the code and data files of an example drake-powered project.
drake_palette

Show drake's color palette.
drake_debug

Run a single target's command in debug mode.
drake_cache_log

Get a table that represents the state of the cache.
drake_examples

List the names of all the drake examples.
new_cache

Make a new drake cache.
outdated

List the targets that are out of date.
expand_plan

Create replicates of targets.
drake_cache_log_file

Generate a flat text log file to represent the state of the cache.
drake_strings

Turn valid expressions into character strings.
expose_imports

Expose all the imports in a package so make() can detect all the package's nested functions.
drake_tip

Output a random tip about drake.
gather_by

Gather multiple groupings of targets
find_cache

Search up the file system for the nearest drake cache.
find_project

Search up the file system for the nearest root path of a drake project.
drake_quotes

Put quotes around each element of a character vector.
legend_nodes

Create the nodes data frame used in the legend of the graph visualizations.
load_basic_example

Deprecated function load_basic_example
drake_unquote

Remove leading and trailing escaped quotes from character strings.
drake_session

Return the sessionInfo() of the last call to make().
evaluate_plan

Use wildcard templating to create a workflow plan data frame from a template data frame.
gather_plan

Write commands to combine several targets into one or more overarching targets.
render_drake_ggraph

empty_hook

Deprecated.
example_drake

Deprecated function example_drake
file_out

Declare the file outputs of a workflow plan command.
eager_load_target

Load a target right away (internal function)
file_store

Tell drake that you want information on a file (target or import), not an ordinary object.
render_drake_graph

evaluate

Deprecated function evaluate
summaries

Deprecated function summaries
target

knitr_deps

Find the drake dependencies of a dynamic knitr report target.
get_cache

Get the drake cache, optionally searching up the file system.
knitr_in

Declare the knitr/rmarkdown source files of a workflow plan command.
ignore

Ignore components of commands and imported functions.
fl_master

Run the master process of the "future_lapply" backend.
make_targets

Just build the targets.
parallelism_choices

List the types of supported parallel computing in drake.
make_with_config

Run make(), on an existing internal configuration list.
long_hash

Get the long hash algorithm of a drake cache.
plan

Deprecated function plan
gather

Deprecated function gather
plan_analyses

Generate a workflow plan data frame to analyze multiple datasets using multiple methods of analysis.
make

Run your project (build the outdated targets).
plan_drake

Deprecated function plan_drake
mc_master

Internal function to launch a master process.
mc_process

Internal function to launch a master process or persistent worker.
load_main_example

Load the main example from drake_example("main")
load_mtcars_example

Load the mtcars example from drake_example("mtcars")
missed

Report any import objects required by your drake_plan plan but missing from your workspace.
map_plan

Create a plan that maps a function to a grid of arguments.
max_useful_jobs

Deprecated function
read_drake_plan

mk

Build a target inside a Makefile during make(..., parallelism = "Makefile").
predict_load_balancing

Predict the load balancing of the next call to make() for non-staged parallel backends.
read_drake_seed

Read the pseudo-random number generator seed of the project.
predict_runtime

Predict the elapsed runtime of the next call to make() for non-staged parallel backends.
read_drake_graph

read_drake_meta

Deprecated: read the metadata of a target or import.
message_sink_hook

Deprecated.
prepare_distributed

Do the preparatory work for make() with a distributed computing backend (see the parallelism argument of make()).
progress

migrate_drake_project

Deprecated: reconfigure an old project (built with drake <= 4.4.0) to be compatible with later versions of drake.
make_imports

Just make the imports.
plan_to_notebook

Turn a drake workflow plan data frame into an R notebook,
plot_graph

Deprecated function plot_graph
make_session

readd

Read and return a drake target/import from the cache.
recover_cache

Load an existing drake files system cache if it exists or create a new one otherwise.
prune_drake_graph

Prune the dependency network of your project.
r_recipe_wildcard

Show the R recipe wildcard for make(..., parallelism = "Makefile").
output_sink_hook

Deprecated.
prune_envir

Prune the evaluation environment
reduce_by

Reduce multiple groupings of targets
rate_limiting_times

Defunct
reduce_plan

Write commands to reduce several targets down to one.
render_graph

Deprecated function render_graph
reexports

Objects exported from other packages
render_sankey_drake_graph

remote_hasty_build

Build a target using "hasty" parallelism
sankey_drake_graph

Show a Sankey graph of your drake project.
parallel_stages

Defunct function
shell_file

Write an example shell.sh file required by make(..., parallelism = 'Makefile', prepend = 'SHELL=./shell.sh').
plan_summaries

Generate a workflow plan data frame for summarizing multiple analyses of multiple datasets multiple ways.
plan_to_code

Turn a drake workflow plan data frame into a plain R script file.
read_config

Deprecated function read_config
session

Deprecated function session
this_cache

Get the cache at the exact file path specified.
read_drake_config

time_stamps

Write dummy timestamp files for make(..., parallelism = "Makefile").
workflow

Deprecated function workflow
read_graph

Deprecated function read_graph
workplan

Deprecated function workplan
short_hash

Get the short hash algorithm of a drake cache.
static_drake_graph

Deprecated: show a ggraph/ggplot2 representation of your drake project.
store_drake_config

read_plan

Deprecated function read_plan
render_static_drake_graph

Deprecated: render a ggraph/ggplot2 representation of your drake project.
show_source

Show how a target/import was produced.
silencer_hook

Deprecated.
rescue_cache

Try to repair a drake cache that is prone to throwing storr-related errors.
tracked

List the targets and imports that are reproducibly tracked.
trigger

Customize the decision rules for rebuilding targets
vis_drake_graph

Show an interactive visual network representation of your drake project.
triggers

Deprecated. List the old drake triggers.
target_namespaces

For drake caches, list the storr cache namespaces that store target-level information.
test_with_dir

Run a unit test in a way that quarantines the side effects from your workspace and file system.
backend

Deprecated function backend
clean_main_example

Clean the main example from drake_example("main")
analysis_wildcard

as_drake_filename

Deprecated function as_drake_filename
as_file

Deprecated function as_file