R/find.R
Only works if the cache is a file system
in a folder named .drake
(default).
find_project(path = getwd())
path | starting path for search back for the project. Should be a subdirectory of the drake project. |
---|
File path of the nearest drake project or NULL
if no drake project 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 root directory of the current drake project. # Search up through parent directories if necessary. find_cache() }) # }