drake (version 6.2.1)

find_project: Search up the file system for the nearest root path of a drake project.

Description

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

Usage

find_project(path = getwd())

Arguments

path

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

Value

File path of the nearest drake project or NULL if no drake project is found.

See Also

drake_plan(), make()

Examples

Run this code
# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_mtcars_example() # Get the code with drake_example("mtcars").
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()
})
# }

Run the code above in your browser using DataCamp Workspace