Skip to content

Commit

Permalink
add R version + RAM/CPU in app footer
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Nov 30, 2024
1 parent 1790882 commit 4df4bfa
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/ui_utils.R
Original file line number Diff line number Diff line change
@@ -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;")
)
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
136 changes: 136 additions & 0 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 4df4bfa

Please sign in to comment.