From 3f247cbb90e6c47f4e7ac367af124036f1cf4bea Mon Sep 17 00:00:00 2001 From: pat-s Date: Wed, 9 Sep 2026 12:59:10 +0000 Subject: [PATCH] fix(ci): do not print a missing timing as "NAs" A MISSING_FROM_INDEX row has no install to time, and `%.1f` renders the NA as the literal "NAs", which reads as a unit. Report the row without a timing. --- local/verify-repo-routing.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/local/verify-repo-routing.R b/local/verify-repo-routing.R index 4e984f6..c19494d 100644 --- a/local/verify-repo-routing.R +++ b/local/verify-repo-routing.R @@ -96,7 +96,10 @@ emit <- function(package, status, built = "", secs = NA_real_) { r_minor, package, status, - sprintf("%s|%.1fs", built, secs) + # `%.1f` renders NA as the literal "NAs", which reads as a unit rather + # than as a missing measurement. A package that was never in the index + # has no timing at all. + if (is.na(secs)) built else sprintf("%s|%.1fs", built, secs) ) ) } -- 2.54.0