From e7f729f7df4661b17e45a33e6f00fd265edce8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Mon, 24 Jun 2024 13:04:19 +0200 Subject: [PATCH] Use dev pkgcache --- src/library/pkgcache/DESCRIPTION | 2 +- src/library/pkgcache/R/archive.R | 2 +- src/library/pkgcache/R/metadata-cache.R | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/library/pkgcache/DESCRIPTION b/src/library/pkgcache/DESCRIPTION index 9c2104c61..1e4eb68fc 100644 --- a/src/library/pkgcache/DESCRIPTION +++ b/src/library/pkgcache/DESCRIPTION @@ -25,7 +25,7 @@ Language: en-US Roxygen: list(markdown = TRUE, r6 = FALSE) RoxygenNote: 7.3.1.9000 NeedsCompilation: yes -Packaged: 2024-05-03 09:58:15 UTC; gaborcsardi +Packaged: 2024-06-24 11:04:06 UTC; gaborcsardi Author: Gábor Csárdi [aut, cre], Posit Software, PBC [cph, fnd] Maintainer: Gábor Csárdi diff --git a/src/library/pkgcache/R/archive.R b/src/library/pkgcache/R/archive.R index 0cbf4ad06..78863c437 100644 --- a/src/library/pkgcache/R/archive.R +++ b/src/library/pkgcache/R/archive.R @@ -483,7 +483,7 @@ cran_archive_list <- function(cran_mirror = default_cran_mirror(), packages = NULL) { get_archive_cache(cran_mirror)$list( update_after = update_after, - package = packages + packages = packages ) } diff --git a/src/library/pkgcache/R/metadata-cache.R b/src/library/pkgcache/R/metadata-cache.R index f7cede07d..0ffe672f9 100644 --- a/src/library/pkgcache/R/metadata-cache.R +++ b/src/library/pkgcache/R/metadata-cache.R @@ -779,9 +779,10 @@ missing_pkgs_note <- function(pkgs, result) { what <- vcapply(msgs, "[[", 1) where <- vcapply(msgs, "[[", 2) + errmsg <- vcapply(which(bad), function(i) conditionMessage(result[[i]])) for (wt in unique(what)) { wh <- unique(where[what == wt]) - cli::cli_alert_info("{wt} packages are missing from {wh}") + cli::cli_alert_info("{wt} packages are missing from {wh}: {errmsg}") } }