From 4df4bfa284520919ab4ddfb194a45665a5032f09 Mon Sep 17 00:00:00 2001 From: eblondel Date: Sun, 1 Dec 2024 00:40:59 +0100 Subject: [PATCH] add R version + RAM/CPU in app footer --- assets/ui_utils.R | 2 +- package.json | 1 + renv.lock | 136 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 138 insertions(+), 1 deletion(-) diff --git a/assets/ui_utils.R b/assets/ui_utils.R index 0f8f061..11788ed 100644 --- a/assets/ui_utils.R +++ b/assets/ui_utils.R @@ -1,6 +1,6 @@ footer <- function(id, version, date){ tags$div( tags$p(sprintf("%s - v%s (%s)", id, version, date), style = "float:left;color:white;"), - tags$p("", style = "float:right;") + tags$p(paste(sessionInfo()$R.version$version.string,"– Resources: RAM:", round(benchmarkme::get_ram()/1e9,1),"GB", "–","CPU:", benchmarkme::get_cpu()$no_of_cores, "cores"), style = "float:right;") ) } \ No newline at end of file diff --git a/package.json b/package.json index 0aeb519..17db7d4 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ {"package": "promises", "version": "1.2.0.1", "repos": "https://cran.r-project.org"}, {"package": "future", "version": "1.30.0", "repos": "https://cran.r-project.org"}, {"package": "ipc", "version": "0.1.3", "repos": "https://cran.r-project.org"}, + {"package": "benchmarkme", "version": "1.0.8", "repos": "https://cran.r-project.org"}, {"package": "ocs4R", "version": "0.2.3", "repos": "https://cran.r-project.org"}, {"package": "d4storagehub4R", "version": "0.4-2", "repos": "https://cran.r-project.org"}, {"package": "zen4R", "version": "0.10", "repos": "https://cran.r-project.org"}, diff --git a/renv.lock b/renv.lock index 9227ccc..6c673b3 100644 --- a/renv.lock +++ b/renv.lock @@ -62,6 +62,22 @@ ], "Hash": "a3142b2a022b8174ca675bc8b80cdc4e" }, + "Matrix": { + "Package": "Matrix", + "Version": "1.5-4", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "R", + "graphics", + "grid", + "lattice", + "methods", + "stats", + "utils" + ], + "Hash": "e779c7d9f35cc364438578f334cffee2" + }, "R6": { "Package": "R6", "Version": "2.5.1", @@ -145,6 +161,43 @@ ], "Hash": "0c54cf3a08cc0e550fbd64ad33166143" }, + "benchmarkme": { + "Package": "benchmarkme", + "Version": "1.0.8", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "Matrix", + "R", + "benchmarkmeData", + "compiler", + "doParallel", + "dplyr", + "foreach", + "graphics", + "httr", + "methods", + "parallel", + "stringr", + "tibble", + "utils" + ], + "Hash": "eaa6ca07e7dfe815da4c1f62a425d9d2" + }, + "benchmarkmeData": { + "Package": "benchmarkmeData", + "Version": "1.0.4", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "R", + "dplyr", + "graphics", + "tibble", + "utils" + ], + "Hash": "03127f8e60281ab3c52f96bb98056dcb" + }, "bit": { "Package": "bit", "Version": "4.5.0", @@ -343,6 +396,20 @@ ], "Hash": "33698c4b3127fc9f506654607fb73676" }, + "doParallel": { + "Package": "doParallel", + "Version": "1.0.17", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "R", + "foreach", + "iterators", + "parallel", + "utils" + ], + "Hash": "451e5edf411987991ab6a5410c45011f" + }, "dotenv": { "Package": "dotenv", "Version": "1.0.3", @@ -451,6 +518,19 @@ ], "Hash": "bd1297f9b5b1fc1372d19e2c4cd82215" }, + "foreach": { + "Package": "foreach", + "Version": "1.5.2", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "R", + "codetools", + "iterators", + "utils" + ], + "Hash": "618609b42c9406731ead03adf5379850" + }, "fresh": { "Package": "fresh", "Version": "0.2.1", @@ -727,6 +807,17 @@ ], "Hash": "43b9e88c7e2e1518c8e87060f5f5c2ab" }, + "iterators": { + "Package": "iterators", + "Version": "1.0.14", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "R", + "utils" + ], + "Hash": "8954069286b4b2b0d023d1b288dce978" + }, "jose": { "Package": "jose", "Version": "1.2.1", @@ -805,6 +896,21 @@ ], "Hash": "a3e051d405326b8b0012377434c62b37" }, + "lattice": { + "Package": "lattice", + "Version": "0.21-8", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "R", + "grDevices", + "graphics", + "grid", + "stats", + "utils" + ], + "Hash": "0b8a6d63c8770f02a8b5635f3c431e6b" + }, "lazyeval": { "Package": "lazyeval", "Version": "0.2.2", @@ -1312,6 +1418,36 @@ ], "Hash": "5f5a7629f956619d519205ec475fe647" }, + "stringi": { + "Package": "stringi", + "Version": "1.8.4", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "R", + "stats", + "tools", + "utils" + ], + "Hash": "39e1144fd75428983dc3f63aa53dfa91" + }, + "stringr": { + "Package": "stringr", + "Version": "1.5.1", + "Source": "Repository", + "Repository": "CRAN", + "Requirements": [ + "R", + "cli", + "glue", + "lifecycle", + "magrittr", + "rlang", + "stringi", + "vctrs" + ], + "Hash": "960e2ae9e09656611e0b8214ad543207" + }, "sys": { "Package": "sys", "Version": "3.4.3",