Skip to contents

Check if the stating universe is active.

Usage

staging_is_active(
  start = c("01-15", "04-15", "07-15", "10-15"),
  today = Sys.Date()
)

Arguments

start

Character vector of "%m-%d" dates that the staging universe becomes active. Staging will then last for a full calendar month. For example, if you supply a start date of "01-15", then the staging period will include all days from "01-15" through "02-14" and not include "02-15".

today

Character string with today's date in "%Y-%m-%d" format or an object convertible to POSIXlt format.

Value

TRUE if the staging universe is active, FALSE otherwise.

See also

Other staging: propose_snapshot(), update_staging()

Examples

staging_is_active()
#> [1] FALSE