. — mk" />
Makefile
during make(..., parallelism = "Makefile")
.R/Makefile.R
Users should not need to call this function directly.
mk(target = character(0), cache_path = drake::default_cache_path())
target | name of target to make |
---|---|
cache_path | path to the drake cache |
NULL
# NOT RUN { test_with_dir("Quarantine side effects.", { # This function is meant to be part of Makefile recipes for # make(..., parallelism = "Makefile"). # These examples peer into the internals of drake, # but are not really of practical use for most users. load_basic_example() # Get the code with drake_example("basic"). config <- drake_config(my_plan) # Internal configuration list. # Prepare to use a distributed computing parallel backend # such as "Makefile" or "future_lapply". # The following happens during make(). store_drake_config(config = config) prepare_distributed(config = config) # Write the dummy timestamp files usually written at the beginning # of make(..., parallelism = "Makefile"). time_stamps(config = config) # Use mk() to build a target. Usually called inside a Makefile recipe. mk(target = "small", cache_path = default_cache_path()) }) # }