Learn R Programming

drake (version 5.2.1)

default_hook: Default hook argument to make().

Description

Most users do not need to micromanage hooks.

Usage

default_hook(code)

Arguments

code

Placeholder for the code to build a target/import.

Value

A function that you can supply to the hook argument of make().

Examples

Run this code
# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_mtcars_example() # Get the code with drake_example("mtcars").
# Everything gets built normally.
make(my_plan, hook = default_hook)
cached() # List the cached targets and imports.
})
# }

Run the code above in your browser using DataLab