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

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

Value

NULL if successful. An error is thrown if inconsistencies found

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

Examples

if (FALSE) {
x <- dependency_table(project = ".")
check_yamls_consistent(x)
}