build_times {drake} | R Documentation |
See the time it took to build each target.
Description
Applies to targets in your plan, not imports or files.
Usage
build_times(
...,
path = NULL,
search = NULL,
digits = 3,
cache = drake::drake_cache(path = path),
targets_only = NULL,
verbose = NULL,
jobs = 1,
type = c("build", "command"),
list = character(0)
)
Arguments
... |
Targets to load from the cache: as names (symbols) or
character strings. If the |
path |
Path to a |
search |
Deprecated. |
digits |
How many digits to round the times to. |
cache |
drake cache. See |
targets_only |
Deprecated. |
verbose |
Deprecated on 2019-09-11. |
jobs |
Number of jobs/workers for parallel processing. |
type |
Type of time you want: either |
list |
Character vector of targets to select. |
Details
Times for dynamic targets
(https://books.ropensci.org/drake/dynamic.html
)
only reflect the time it takes
to post-process the sub-targets (typically very fast)
and exclude the time it takes to build the sub-targets themselves.
Sub-targets build times are listed individually.
Value
A data frame of times, each from system.time()
.
See Also
Examples
## Not run:
isolate_example("Quarantine side effects.", {
if (suppressWarnings(require("knitr"))) {
if (requireNamespace("lubridate")) {
# Show the build times for the mtcars example.
load_mtcars_example() # Get the code with drake_example("mtcars").
make(my_plan) # Build all the targets.
print(build_times()) # Show how long it took to build each target.
}
}
})
## End(Not run)