check_yamls_consistent: Checks that the staged dependency yamls are consistent with...

View source: R/dependencies.R

check_yamls_consistentR Documentation

Checks that the staged dependency yamls are consistent with the dependencies listed in the DESCRIPTION files

Description

Checks that the staged dependency yamls are consistent with the dependencies listed in the DESCRIPTION files

Usage

check_yamls_consistent(dep_structure, skip_if_missing_yaml = FALSE)

Arguments

dep_structure

dependency_structure object

skip_if_missing_yaml

logical should checks be skipped on packages without yaml files. Default FALSE

Details

This function explicitly checks that for all packages in the dependency_structure object: all upstream and downstream packages specified in each yaml file are found in the appropriate package DESCRIPTION file

Value

NULL if successful. An error is thrown if inconsistencies found

Examples

## Not run: 
x <- dependency_table(project = ".")
check_yamls_consistent(x)

## End(Not run)

openpharma/staged.dependencies documentation built on Aug. 27, 2023, 10:17 a.m.