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.
This commit is contained in:
parent
af4cc6f414
commit
3f247cbb90
1 changed files with 4 additions and 1 deletions
|
|
@ -96,7 +96,10 @@ emit <- function(package, status, built = "", secs = NA_real_) {
|
||||||
r_minor,
|
r_minor,
|
||||||
package,
|
package,
|
||||||
status,
|
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)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue