find_cache | R Documentation |
Only works if the cache is a file system in a
hidden folder named .drake/
(default).
find_cache(path = getwd(), dir = NULL, directory = NULL)
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 |
File path of the nearest drake cache or NULL
if no cache is found.
drake_plan()
, make()
,
## Not run:
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()
}
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.