Assert that the vector of dates being passed in contains dates for each day
Source:R/checkers.R
assert_daily_data.Rd
This function checks to make sure that the date vector being passed in is complete for every day between the minimum and maximum dates. It can have repeated values.
Usage
assert_daily_data(dates, call = rlang::caller_env(), add_err_msg = "")
Arguments
- dates
the vector of dates to check, must be of Date type
- call
Calling environment to be passed to
cli::cli_abort()
for traceback.- add_err_msg
add_err_msg string containing an additional error message, default is the empty string (
""
)