Skip to content

Commit f1d6178

Browse files
committed
Tweak deadliners display width
1 parent f59b012 commit f1d6178

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-04-23 Dirk Eddelbuettel <edd@debian.org>
2+
3+
* inst/examples/deadliners.r: Adjust screen width for display
4+
15
2025-04-22 Dirk Eddelbuettel <edd@debian.org>
26

37
* inst/examples/r2u.r: Update source of 'last updated' info for p3m

inst/examples/deadliners.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Minimal 'Deadline' field printer from CRAN db
44
#
5-
# Copyright (C) 2024 Dirk Eddelbuettel
5+
# Copyright (C) 2024 - 2025 Dirk Eddelbuettel
66
#
77
# Released under GPL (>= 2)
88

@@ -18,7 +18,7 @@ db <- as.data.frame(tools::CRAN_package_db())
1818
dd <- with(db, db[!is.na(Deadline), c("Package", "Version", "Deadline")])
1919
dd <- with(dd, dd[order(Deadline, Package), ])
2020

21-
cols <- 1.2*getOption("width")
21+
cols <- 1.45*getOption("width")
2222
dts <- unique(dd[, "Deadline"])
2323
for (d in seq_along(dts)) {
2424
cat(.blue(dts[d]), ": ", sep="")

inst/examples/r2u.r

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ if (is.finite(match(opt$CMD, "build"))) {
7070
#cat("P3M/PPM/RSPM last updated", format(round(difftime(Sys.time(), ts, units=un),1)), "ago\n")
7171
## no longer includes hours :-/
7272
#ld <- anytime::utcdate(D[1,"completed"])
73+
## also: hit given yyyy-mm-dd in eg https://packagemanager.posit.co/cran/2025-04-22/src/contrib/PACKAGES
74+
## and then check success / failure -- might be lighter than downloading the whole blob
7375
ld <- as.Date(max(RcppSimdJson::fload("https://p3m.dev/__api__/repos/cran/transaction-dates")$alias))
7476
cat("P3M/PPM/RSPM last updated", as.integer(Sys.Date()) - as.integer(ld), "days ago on", format(ld), "\n")
7577

0 commit comments

Comments
 (0)