Check if targets are out-of-date vis-a-vis their dependencies

out_of_date(targets, dependencies, packages = NULL)

Arguments

targets

A character vector of paths to files

dependencies

A character vector of paths to files which the targets depend on

packages

A character vector of names of packages which targets depend on

Value

TRUE if any of targets are older than any of dependencies or if any of targets do not exist; FALSE otherwise

Examples

if (FALSE) {
out_of_date("data/processed_data.Rds", "data/raw_data.Rds")
}