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

View source: R/out_of_date.R

out_of_dateR Documentation

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

Description

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

Usage

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

## Not run: 
out_of_date("data/processed_data.Rds", "data/raw_data.Rds")

## End(Not run)

makepipe documentation built on Dec. 7, 2022, 5:16 p.m.