check_for_errors: Raise conditions stored in a 'fhub_validations' object

View source: R/check_for_errors.R

check_for_errorsR Documentation

Raise conditions stored in a fhub_validations object

Description

This is meant to be used in CI workflows to raise conditions from fhub_validations objects.

Usage

check_for_errors(x)

Arguments

x

A fhub_validations object

Value

An error if one of the elements of x is of class fhub_failure or fhub_unrecoverable_error. TRUE invisibly otherwise.


epiforecasts/ForecastHubValidations documentation built on Oct. 20, 2023, 6:55 p.m.