Skip to content

Commit

Permalink
Use latest_update()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennit07 committed Dec 13, 2024
1 parent dd71c9e commit 4a39a44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/00-update_refs.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ get_dd_period <- function() {
#'
#' @family initialisation
latest_update <- function() {
end_date <- end_date()
month <- as.character(lubridate::month(end_date, label = TRUE))
year <- as.character(lubridate::year(end_date))

month <- as.character(lubridate::month(end_date(), label = TRUE))
year <- as.character(lubridate::year(end_date()))
latest_update <- as.character(stringr::str_glue("{month}_{year}"))

return(latest_update)
Expand Down

0 comments on commit 4a39a44

Please sign in to comment.