hook
argument to make()
for which no targets get built and no imports get processed.R/hooks.R
This hook forces make()
to essentially do nothing.
empty_hook(code)
code | Placeholder for the code to build a target/import.
For |
---|
A function that you can supply to the hook
argument
of make()
.
# NOT RUN { test_with_dir("Quarantine side effects.", { load_basic_example() # Get the code with drake_example("basic"). # Run the project with the empty hook. make(my_plan, hook = empty_hook) # Nothing gets built! cached() # character(0) # nolint }) # }