Skip to content
Merged
Next Next commit
include a warning message about pak's detection limitations
  • Loading branch information
matteodelucchi committed Aug 14, 2025
commit 81006601f532a092a0d70aa8de07aa0dc463ff8e
14 changes: 13 additions & 1 deletion R/sysreqs.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@ format.pak_sysreqs <- function(x, ...) {
out
}

# Add warning message about detection limitations
warning_msg <- c(
"",
cli$rule(left = "System package detection", col = "yellow"),
paste(
cli$col_yellow(cli$symbol$warning),
"System packages are detected via the system package manager only."
),
"Software installed in non-standard locations may not be detected."
)

c(
cli$rule(left = "Install scripts", right = label),
x$pre_install,
Expand All @@ -195,7 +206,8 @@ format.pak_sysreqs <- function(x, ...) {
" ",
vcapply(pkgs, function(x) paste(cisort(x), collapse = ", "))
)
}
},
warning_msg
)
}

Expand Down