drake (version 7.13.9)

find_cache: Search up the file system for the nearest drake cache. [Stable]

Description

Only works if the cache is a file system in a hidden folder named .drake/ (default).

Usage

find_cache(path = getwd(), dir = NULL, directory = NULL)

Value

File path of the nearest drake cache or NULL

if no cache is found.

Arguments

path

Starting path for search back for the cache. Should be a subdirectory of the drake project.

dir

Character, name of the folder containing the cache.

directory

Deprecated. Use dir.

See Also

drake_plan(), make(),

Examples

Run this code
if (FALSE) {
isolate_example("Quarantine side effects.", {
if (suppressWarnings(require("knitr"))) {
load_mtcars_example() # Get the code with drake_example("mtcars").
make(my_plan) # Run the project, build the target.
# Find the file path of the project's cache.
# Search up through parent directories if necessary.
find_cache()
}
})
}

Run the code above in your browser using DataLab