powered by
failed
List the targets that failed in the last call to make(). Together, functions failed and diagnose() should eliminate the strict need for ordinary error messages printed to the console.
make()
diagnose()
failed(path = getwd(), search = TRUE, cache = drake::get_cache(path = path, search = search, verbose = verbose), verbose = TRUE)
Root directory of the drake project, or if search is TRUE, either the project root or a subdirectory of the project.
search
TRUE
If TRUE, search parent directories to find the nearest drake cache. Otherwise, look in the current working directory only.
optional drake cache. See codenew_cache(). If cache is supplied, the path and search arguments are ignored.
cache
path
whether to print console messages
A character vector of target names
diagnose, session, built, imported, readd, workplan, make
diagnose
session
built
imported
readd
workplan
make
# NOT RUN { load_basic_example() make(my_plan) failed() # nothing bad_plan <- workplan(x = function_doesnt_exist()) make(bad_plan) # error failed() # "x" diagnose(x) # }
Run the code above in your browser using DataLab