If R4GPF.current_date
option is not set, the current system date is used.
Examples
get_current_date()
#> [1] "2025-06-05"
# Setting custom date using `R4GPF.current_date` option
options(R4GPF.current_date = as.Date("2023-01-01"))
get_current_date()
#> [1] "2023-01-01"
options(R4GPF.current_date = NULL) # Reset default date#' Working with cache
get_current_date()
#> [1] "2025-06-05"