Learn R Programming

drake (version 5.2.1)

empty_hook: A hook argument to make() for which no targets get built and no imports get processed.

Description

This hook forces make() to essentially do nothing.

Usage

empty_hook(code)

Arguments

code

Placeholder for the code to build a target/import. For empty_hook(), this code does not actually get executed.

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").
# Run the project with the empty hook.
make(my_plan, hook = empty_hook) # Nothing gets built!
cached() # character(0) # nolint
})
# }

Run the code above in your browser using DataLab