dot-check_cast_empty: Diagnose an empty (or partially empty) cast-API result.

.check_cast_emptyR Documentation

Diagnose an empty (or partially empty) cast-API result.

Description

On a partial result (some rows returned), warns about the signals/geo_types that returned nothing, noting any that epidata_meta() says don't exist. On a fully empty result, errors on an invalid geo_type/signals, warns when the local geo_values/reference_time filters dropped every row the server returned, and warns generically otherwise. No-op when fetch_args$return_empty is TRUE.

Usage

.check_cast_empty(result, fetched, source, signals, geo_type, fetch_args)

Arguments

result

the filtered result (a data frame)

fetched

the combined server response before local filtering

source, signals, geo_type

the query parameters, for error/warning messages and for looking up epidata_meta()

fetch_args

a fetch_args object


epidatr documentation built on Sept. 21, 2026, 5:08 p.m.