R/build_times.R
Listed times do not include the amount of time
spent loading and saving objects! See the type
argument for different versions of the build time.
(You can choose whether to take storage time into account.)
build_times(..., path = getwd(), search = TRUE, digits = 3, cache = get_cache(path = path, search = search, verbose = verbose), targets_only = FALSE, verbose = drake::default_verbose(), jobs = 1, type = c("build", "command"))
... | targets to load from the cache: as names (symbols),
character strings, or |
---|---|
path | Root directory of the drake project,
or if |
search | logical. If |
digits | How many digits to round the times to. |
cache | drake cache. See |
targets_only | logical, whether to only return the build times of the targets (exclude the imports). |
verbose | logical or numeric, control printing to the console.
Use
|
jobs | number of jobs/workers for parallel processing |
type | Type of time you want: either |
A data frame of times, each from system.time()
.
# NOT RUN { test_with_dir("Quarantine side effects.", { # Show the build times for the basic example. load_basic_example() # Get the code with drake_example("basic"). make(my_plan) # Build all the targets. build_times() # Show how long it took to build each target. build_times(starts_with("coef")) # `dplyr`-style `tidyselect` }) # }