Skip to content

Commit

Permalink
Override reported column width by 40%
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Jul 5, 2024
1 parent 45b7d96 commit dfb6e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/examples/deadliners.r
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ db <- as.data.frame(tools::CRAN_package_db())
dd <- with(db, db[!is.na(Deadline), c("Package", "Version", "Deadline")])
dd <- with(dd, dd[order(Deadline, Package), ])

cols <- if (nzchar(Sys.which("tput"))) as.integer(system("tput cols", intern=TRUE)) else 80L
cols <- if (nzchar(Sys.which("tput"))) 1.4*as.integer(system("tput cols", intern=TRUE)) else 80L
dts <- unique(dd[, "Deadline"])
for (d in seq_along(dts)) {
cat(.blue(dts[d]), ": ", sep="")
Expand Down

0 comments on commit dfb6e7b

Please sign in to comment.