Skip to content

Commit

Permalink
use last-upkeep as field name
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Oct 22, 2024
1 parent 77e3c08 commit 106ba14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/upkeep.R
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@ has_old_cran_comments <- function() {
}

last_upkeep_date <- function() {
as.Date(proj_desc()$get_field("Config/usethis/upkeep", "2000-01-01"), format = "%Y-%m-%d")
as.Date(proj_desc()$get_field("Config/usethis/last-upkeep", "2000-01-01"), format = "%Y-%m-%d")
}

last_upkeep_year <- function() {
as.integer(format(last_upkeep_date(), "%Y"))
}

record_upkeep_date <- function(date) {
desc <- proj_desc_field_update("Config/usethis/upkeep", format(date, "%Y-%m-%d"))
desc <- proj_desc_field_update("Config/usethis/last-upkeep", format(date, "%Y-%m-%d"))
}

0 comments on commit 106ba14

Please sign in to comment.