An import is a non-target object processed
by make()
. Targets in the workflow
plan data frame (see drake_config()
may depend on imports.
imported(files_only = FALSE, path = getwd(), search = TRUE,
cache = drake::get_cache(path = path, search = search, verbose = verbose),
verbose = drake::default_verbose(), jobs = 1)
logical, whether to show imported files only and ignore imported objects. Since all your functions and all their global variables are imported, the full list of imported objects could get really cumbersome.
Root directory of the drake project,
or if search
is TRUE
, either the
project root or a subdirectory of the project.
Ignored if a cache
is supplied.
logical. If TRUE
, search parent directories
to find the nearest drake cache. Otherwise, look in the
current working directory only.
Ignored if a cache
is supplied.
drake cache. See new_cache()
.
If supplied, path
and search
are ignored.
logical or numeric, control printing to the console.
Use pkgconfig
to set the default value of verbose
for your R session:
for example, pkgconfig::set_config("drake::verbose" = 2)
.
FALSE
:print nothing.
TRUE
:print only targets to build.
in addition, print checks and cache info.
in addition, print any potentially missing items.
in addition, print imports. Full verbosity.
number of jobs/workers for parallel processing
Character vector naming the imports in the cache.
# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_mtcars_example() # Load the canonical example.
make(my_plan) # Run the project, build the targets.
imported() # List all the imported objects/files in the cache.
# For imported files, only the fingerprints/hashes are stored.
})
# }
Run the code above in your browser using DataLab