Skip to content

Commit

Permalink
fix(format.session_info): Don't print packages if none were found
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Aug 15, 2024
1 parent 84e0b4e commit 7854b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/session-info.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ format.session_info <- function(x, ...) {
""
)
},
if ("packages" %in% names(x)) {
if ("packages" %in% names(x) && nrow(x$packages) > 0) {
c(rule("Packages"), format(x$packages), "")
},
if ("external" %in% names(x)) {
Expand Down

0 comments on commit 7854b5a

Please # to comment.