return info if no packages are staged for removal

This commit is contained in:
Patrick Schratz 2024-09-01 10:10:36 +02:00
commit 15a52c2622
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -50,6 +50,10 @@ get_removed_cran_packages <- function(date = lubridate::today()) {
results <- purrr::map(feed, ~ process_cranberries_rss(.x, date)) %>%
purrr::list_rbind()
if (nrow(results == 0)) {
cli::cli_alert_info("{.fun archive_package}: No packages to archive for interval {.field {date}}.")
}
return(results)
}