R/read.R
Does not delete the item from the cache.
readd(target, character_only = FALSE, path = getwd(), search = TRUE, cache = drake::get_cache(path = path, search = search, verbose = verbose), namespace = NULL, verbose = drake::default_verbose())
target | If |
---|---|
character_only | logical, whether |
path | Root directory of the drake project,
or if |
search | logical. If |
cache | drake cache. See |
namespace | optional character string,
name of the |
verbose | logical or numeric, control printing to the console.
Use
|
The cached value of the target
.
loadd()
, cached()
,
built()
, link{imported}
, drake_plan()
,
make()
# NOT RUN { test_with_dir("Quarantine side effects.", { load_basic_example() # Get the code with drake_example("basic"). make(my_plan) # Run the project, build the targets. readd(reg1) # Return imported object 'reg1' from the cache. readd(small) # Return targets 'small' from the cache. readd("large", character_only = TRUE) # Return 'large' from the cache. # For external files, only the fingerprint/hash is stored. readd(file_store("report.md"), character_only = TRUE) }) # }