Skip to contents

Assert that the sum of the wastewater site populations don't exceed the total population

Usage

assert_ww_site_pops_lt_total(
  pop_size,
  ww_pop_sites,
  call = rlang::caller_env()
)

Arguments

pop_size

integer indicating the population size in the hypothetical state

ww_pop_sites

vector indicating the population size in the catchment area in each of those sites

call

Calling environment to be passed to cli::cli_abort() for traceback.

Value

NULL, invisibly