Skip to contents

Assert that the second vector of dates is within the period after the first date in the first set of dats and the maximum date

Usage

assert_dates_within_frame(
  dates1,
  dates2,
  max_date,
  call = rlang::caller_env(),
  add_err_msg = ""
)

Arguments

dates1

the vector of dates to check, must of date type

dates2

the vector of dates to compare to, must be of date type

max_date

the maximum date the testing dates should be

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 ("")

Value

NULL invisible