verify_config: Verify that a config file row has the requisite info

View source: R/verify_config.R

verify_configR Documentation

Verify that a config file row has the requisite info

Description

Checks the config row for valid src-site-logic pairs with respect to a given model

Usage

verify_config(config, checks = c("names"), on_fail = warning)

Arguments

config

a config df to verify

checks

a character vector of tests to run

on_fail

the function to apply to the error message[s] if a test fails

Value

TRUE if is valid, FALSE if not

Examples

## Not run: 
egconfig <- suppressWarnings(
  stage_metab_config(tag="0.0.1", strategy="try stage_metab_config", 
    site="nwis_04087142", filename=NULL))
verify_config(egconfig)

## End(Not run)

USGS-R/mda.streams documentation built on June 3, 2023, 8:43 a.m.