R/find.R
Only works if the cache is a file system in a
hidden folder named .drake
(default).
find_cache(path = getwd(), directory = basename(drake::default_cache_path()))
path | starting path for search back for the cache. Should be a subdirectory of the drake project. |
---|---|
directory | Name of the folder containing the cache. |
File path of the nearest drake cache or NULL
if no cache is found.
# 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 target. # Find the file path of the project's cache. # Search up through parent directories if necessary. find_cache() }) # }