pat_check: Check _pat_ object for validity

View source: R/utils-pat.R

pat_checkR Documentation

Check pat object for validity

Description

Checks on the validity of an pat object. If any test fails, this function will stop with a warning message.

Usage

pat_check(pat)

Arguments

pat

pat object.

Value

Returns TRUE invisibly if the pat object is valid.

See Also

pat_isValid

Examples

library(AirSensor2)

pat_check(example_pat)

# This would throw an error
if ( FALSE ) {

  broken_pat <- example_pat
  names(broken_pat) <- c('meta', 'bop')
  pat_check(broken_pat)

}


MazamaScience/AirSensor2 documentation built on Oct. 31, 2024, 1:39 a.m.