Skip to content

Commit 3fc9fcf

Browse files
committed
feat: include chromote_info() in sysinfo
1 parent df475ef commit 3fc9fcf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Imports:
2222
rappdirs,
2323
cli
2424
Suggests:
25+
chromote (>= 0.4.0),
2526
renv,
2627
httpuv,
2728
rmarkdown (>= 2.9),

R/sysinfo.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ write_sysinfo <- function(file = stdout(), libpath = resolve_libpath()) {
1515
pkg_info <- sessioninfo::package_info("installed", include_base = FALSE)
1616

1717
cat(
18+
if (rlang::is_installed("chromote", version = "0.4.0")) {
19+
c(
20+
format(cli::rule("Chrome Info")),
21+
capture.output(print(chromote::chromote_info()))
22+
)
23+
} else {
24+
"{chromote} v0.4.0 or later is not installed."
25+
},
1826
format(cli::rule("Session info")),
1927
format(platform_info),
2028
format(cli::rule("Packages")),
@@ -24,7 +32,6 @@ write_sysinfo <- function(file = stdout(), libpath = resolve_libpath()) {
2432
)
2533
}
2634

27-
2835
gha_image_version <- function() {
2936
Sys.getenv("ImageVersion", "($ImageVersion not found)")
3037
}

0 commit comments

Comments
 (0)