Skip to contents

Returns diagnostic information about the app

Usage

FM_fetch_app_info(session)

Arguments

session

Shiny session variable.

Value

List with information about the app with the following structure

  • uiele: All system information as UI elements to be used in shiny apps.

  • uiele_packages: UI element for installed packages to be used in shiny apps.

  • uiele_options: UI element for current options.

  • uiele_modules: UI element for loaded formods modules to be used in shiny apps.

  • msgs: System information as text to be used in a report/terminal.

  • si_packages Dataframe with currently used packages.

  • si_options Dataframe with current options

Examples

# We need a Shiny session object to use this function:
sess_res = UD_test_mksession()
#> → ASM: including file
#> → ASM:   source: file.path(system.file(package="onbrand"), "templates", "report.docx")
#> → ASM:   dest:   file.path("config","report.docx")
#> → ASM: including file
#> → ASM:   source: file.path(system.file(package="onbrand"), "templates", "report.pptx")
#> → ASM:   dest:   file.path("config","report.pptx")
#> → ASM: including file
#> → ASM:   source: file.path(system.file(package="onbrand"), "templates", "report.yaml")
#> → ASM:   dest:   file.path("config","report.yaml")
#> → ASM: State initialized
#> → ASM: module isgood: TRUE
#> → UD: including file
#> → UD:   source: file.path(system.file(package="onbrand"), "templates", "report.docx")
#> → UD:   dest:   file.path("config","report.docx")
#> → UD: including file
#> → UD:   source: file.path(system.file(package="onbrand"), "templates", "report.pptx")
#> → UD:   dest:   file.path("config","report.pptx")
#> → UD: including file
#> → UD:   source: file.path(system.file(package="onbrand"), "templates", "report.yaml")
#> → UD:   dest:   file.path("config","report.yaml")
#> → UD: State initialized
#> → UD: module checksum updated:897d952fecbc804999396a96f9df4b20
#> → UD: module isgood: TRUE
session = sess_res$session
app_info  = FM_fetch_app_info(session)
app_info$msgs
#>   [1] "Modules"                                                                                                                                   
#>   [2] "ID: ASM"                                                                                                                                   
#>   [3] "type: ASM"                                                                                                                                 
#>   [4] "FM_yaml_file: /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmptlaQu5/temp_libpath139c928679faf/formods/templates/formods.yaml"
#>   [5] "MOD_yaml_file: /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmptlaQu5/temp_libpath139c928679faf/formods/templates/ASM.yaml"   
#>   [6] "User files: /var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T//RtmpDqL5n3/non_shiny/FM"                                                     
#>   [7] "Log file: /var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T//RtmpDqL5n3/non_shiny/FM/formods_log.txt"                                       
#>   [8] "ID: UD"                                                                                                                                    
#>   [9] "type: UD"                                                                                                                                  
#>  [10] "FM_yaml_file: /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmptlaQu5/temp_libpath139c928679faf/formods/templates/formods.yaml"
#>  [11] "MOD_yaml_file: /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmptlaQu5/temp_libpath139c928679faf/formods/templates/UD.yaml"    
#>  [12] "User files: /var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T//RtmpDqL5n3/non_shiny/FM"                                                     
#>  [13] "Log file: /var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T//RtmpDqL5n3/non_shiny/FM/formods_log.txt"                                       
#>  [14] "Package dependencies: janitor, readr, readxl"                                                                                              
#>  [15] " package           * version  date (UTC) lib source"                                                                                       
#>  [16] " abind               1.4-8    2024-09-12 [2] CRAN (R 4.4.1)"                                                                               
#>  [17] " askpass             1.2.1    2024-10-04 [2] CRAN (R 4.4.1)"                                                                               
#>  [18] " backports           1.5.0    2024-05-23 [2] CRAN (R 4.4.0)"                                                                               
#>  [19] " brio                1.1.5    2024-04-24 [2] CRAN (R 4.4.0)"                                                                               
#>  [20] " broom               1.0.6    2024-05-17 [2] CRAN (R 4.4.0)"                                                                               
#>  [21] " bslib               0.8.0    2024-07-29 [2] CRAN (R 4.4.0)"                                                                               
#>  [22] " cachem              1.1.0    2024-05-16 [2] CRAN (R 4.4.0)"                                                                               
#>  [23] " car                 3.1-2    2023-03-30 [2] CRAN (R 4.4.0)"                                                                               
#>  [24] " carData             3.0-5    2022-01-06 [2] CRAN (R 4.4.0)"                                                                               
#>  [25] " cellranger          1.1.0    2016-07-27 [2] CRAN (R 4.4.0)"                                                                               
#>  [26] " cli                 3.6.3    2024-06-21 [2] CRAN (R 4.4.0)"                                                                               
#>  [27] " clipr               0.8.0    2022-02-22 [2] CRAN (R 4.4.0)"                                                                               
#>  [28] " colorspace          2.1-1    2024-07-26 [2] CRAN (R 4.4.0)"                                                                               
#>  [29] " covr                3.6.4    2023-11-09 [2] CRAN (R 4.4.0)"                                                                               
#>  [30] " data.table          1.16.2   2024-10-10 [2] CRAN (R 4.4.1)"                                                                               
#>  [31] " desc                1.4.3    2023-12-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [32] " devtools            2.4.5    2022-10-11 [2] CRAN (R 4.4.0)"                                                                               
#>  [33] " digest              0.6.37   2024-08-19 [2] CRAN (R 4.4.1)"                                                                               
#>  [34] " downlit             0.4.4    2024-06-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [35] " dplyr               1.1.4    2023-11-17 [2] CRAN (R 4.4.0)"                                                                               
#>  [36] " DT                  0.33     2024-04-04 [2] CRAN (R 4.4.0)"                                                                               
#>  [37] " ellipsis            0.3.2    2021-04-29 [2] CRAN (R 4.4.0)"                                                                               
#>  [38] " evaluate            1.0.1    2024-10-10 [2] CRAN (R 4.4.1)"                                                                               
#>  [39] " fansi               1.0.6    2023-12-08 [2] CRAN (R 4.4.0)"                                                                               
#>  [40] " farver              2.1.2    2024-05-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [41] " fastmap             1.2.0    2024-05-15 [2] CRAN (R 4.4.0)"                                                                               
#>  [42] " flextable           0.9.7    2024-10-27 [2] CRAN (R 4.4.1)"                                                                               
#>  [43] " fontawesome         0.5.2    2023-08-19 [2] CRAN (R 4.4.0)"                                                                               
#>  [44] " fontBitstreamVera   0.1.1    2017-02-01 [2] CRAN (R 4.4.0)"                                                                               
#>  [45] " fontLiberation      0.1.0    2016-10-15 [2] CRAN (R 4.4.0)"                                                                               
#>  [46] " fontquiver          0.2.1    2017-02-01 [2] CRAN (R 4.4.0)"                                                                               
#>  [47] " formods           * 0.1.8    2024-11-20 [1] local"                                                                                        
#>  [48] " fs                  1.6.5    2024-10-30 [2] CRAN (R 4.4.1)"                                                                               
#>  [49] " gdtools             0.4.1    2024-11-04 [2] CRAN (R 4.4.1)"                                                                               
#>  [50] " generics            0.1.3    2022-07-05 [2] CRAN (R 4.4.0)"                                                                               
#>  [51] " ggforce             0.4.2    2024-02-19 [2] CRAN (R 4.4.0)"                                                                               
#>  [52] " ggplot2             3.5.1    2024-04-23 [2] CRAN (R 4.4.0)"                                                                               
#>  [53] " ggpubr              0.6.0    2023-02-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [54] " ggsignif            0.6.4    2022-10-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [55] " glue                1.8.0    2024-09-30 [2] CRAN (R 4.4.1)"                                                                               
#>  [56] " gtable              0.3.6    2024-10-25 [2] CRAN (R 4.4.1)"                                                                               
#>  [57] " gtools              3.9.5    2023-11-20 [2] CRAN (R 4.4.0)"                                                                               
#>  [58] " here                1.0.1    2020-12-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [59] " hms                 1.1.3    2023-03-21 [2] CRAN (R 4.4.0)"                                                                               
#>  [60] " htmltools           0.5.8.1  2024-04-04 [2] CRAN (R 4.4.0)"                                                                               
#>  [61] " htmlwidgets         1.6.4    2023-12-06 [2] CRAN (R 4.4.0)"                                                                               
#>  [62] " httpuv              1.6.15   2024-03-26 [2] CRAN (R 4.4.0)"                                                                               
#>  [63] " httr                1.4.7    2023-08-15 [2] CRAN (R 4.4.0)"                                                                               
#>  [64] " httr2               1.0.4    2024-09-13 [2] CRAN (R 4.4.1)"                                                                               
#>  [65] " janitor             2.2.0    2023-02-02 [2] CRAN (R 4.4.0)"                                                                               
#>  [66] " jquerylib           0.1.4    2021-04-26 [2] CRAN (R 4.4.0)"                                                                               
#>  [67] " jsonlite            1.8.9    2024-09-20 [2] CRAN (R 4.4.1)"                                                                               
#>  [68] " knitr               1.48     2024-07-07 [2] CRAN (R 4.4.0)"                                                                               
#>  [69] " labeling            0.4.3    2023-08-29 [2] CRAN (R 4.4.0)"                                                                               
#>  [70] " later               1.3.2    2023-12-06 [2] CRAN (R 4.4.0)"                                                                               
#>  [71] " lazyeval            0.2.2    2019-03-15 [2] CRAN (R 4.4.0)"                                                                               
#>  [72] " lifecycle           1.0.4    2023-11-07 [2] CRAN (R 4.4.0)"                                                                               
#>  [73] " lubridate           1.9.3    2023-09-27 [2] CRAN (R 4.4.0)"                                                                               
#>  [74] " magrittr            2.0.3    2022-03-30 [2] CRAN (R 4.4.0)"                                                                               
#>  [75] " MASS                7.3-61   2024-06-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [76] " memoise             2.0.1    2021-11-26 [2] CRAN (R 4.4.0)"                                                                               
#>  [77] " mime                0.12     2021-09-28 [2] CRAN (R 4.4.0)"                                                                               
#>  [78] " miniUI              0.1.1.1  2018-05-18 [2] CRAN (R 4.4.0)"                                                                               
#>  [79] " munsell             0.5.1    2024-04-01 [2] CRAN (R 4.4.0)"                                                                               
#>  [80] " officer             0.6.7    2024-10-09 [2] CRAN (R 4.4.1)"                                                                               
#>  [81] " onbrand             1.0.6    2024-09-22 [2] local"                                                                                        
#>  [82] " openssl             2.2.2    2024-09-20 [2] CRAN (R 4.4.1)"                                                                               
#>  [83] " pillar              1.9.0    2023-03-22 [2] CRAN (R 4.4.0)"                                                                               
#>  [84] " pkgbuild            1.4.4    2024-03-17 [2] CRAN (R 4.4.0)"                                                                               
#>  [85] " pkgconfig           2.0.3    2019-09-22 [2] CRAN (R 4.4.0)"                                                                               
#>  [86] " pkgdown             2.1.1    2024-09-17 [2] CRAN (R 4.4.1)"                                                                               
#>  [87] " pkgload             1.4.0    2024-06-28 [2] CRAN (R 4.4.0)"                                                                               
#>  [88] " plotly              4.10.4   2024-01-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [89] " polyclip            1.10-7   2024-07-23 [2] CRAN (R 4.4.0)"                                                                               
#>  [90] " profvis             0.3.8    2023-05-02 [2] CRAN (R 4.4.0)"                                                                               
#>  [91] " promises            1.3.0    2024-04-05 [2] CRAN (R 4.4.0)"                                                                               
#>  [92] " prompter            1.2.0    2024-04-08 [2] CRAN (R 4.4.0)"                                                                               
#>  [93] " purrr               1.0.2    2023-08-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [94] " R6                  2.5.1    2021-08-19 [2] CRAN (R 4.4.0)"                                                                               
#>  [95] " ragg                1.3.3    2024-09-11 [2] CRAN (R 4.4.1)"                                                                               
#>  [96] " rappdirs            0.3.3    2021-01-31 [2] CRAN (R 4.4.0)"                                                                               
#>  [97] " Rcpp                1.0.13-1 2024-11-02 [2] CRAN (R 4.4.1)"                                                                               
#>  [98] " readr               2.1.5    2024-01-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [99] " readxl              1.4.3    2023-07-06 [2] CRAN (R 4.4.0)"                                                                               
#> [100] " remotes             2.5.0    2024-03-17 [2] CRAN (R 4.4.0)"                                                                               
#> [101] " rex                 1.2.1    2021-11-26 [2] CRAN (R 4.4.0)"                                                                               
#> [102] " rhandsontable       0.3.8    2021-05-27 [2] CRAN (R 4.4.0)"                                                                               
#> [103] " rlang               1.1.4    2024-06-04 [2] CRAN (R 4.4.0)"                                                                               
#> [104] " rmarkdown           2.29     2024-11-04 [2] CRAN (R 4.4.1)"                                                                               
#> [105] " rprojroot           2.0.4    2023-11-05 [2] CRAN (R 4.4.0)"                                                                               
#> [106] " rstatix             0.7.2    2023-02-01 [2] CRAN (R 4.4.0)"                                                                               
#> [107] " rstudioapi          0.16.0   2024-03-24 [2] CRAN (R 4.4.0)"                                                                               
#> [108] " sass                0.4.9    2024-03-15 [2] CRAN (R 4.4.0)"                                                                               
#> [109] " scales              1.3.0    2023-11-28 [2] CRAN (R 4.4.0)"                                                                               
#> [110] " sessioninfo         1.2.2    2021-12-06 [2] CRAN (R 4.4.0)"                                                                               
#> [111] " shiny               1.9.1    2024-08-01 [2] CRAN (R 4.4.0)"                                                                               
#> [112] " shinyAce            0.4.3    2024-10-19 [2] CRAN (R 4.4.1)"                                                                               
#> [113] " shinybusy           0.3.3    2024-03-09 [2] CRAN (R 4.4.0)"                                                                               
#> [114] " shinydashboard      0.7.2    2021-09-30 [2] CRAN (R 4.4.0)"                                                                               
#> [115] " shinyWidgets        0.8.7    2024-09-23 [2] CRAN (R 4.4.1)"                                                                               
#> [116] " snakecase           0.11.1   2023-08-27 [2] CRAN (R 4.4.0)"                                                                               
#> [117] " stringi             1.8.4    2024-05-06 [2] CRAN (R 4.4.0)"                                                                               
#> [118] " stringr             1.5.1    2023-11-14 [2] CRAN (R 4.4.0)"                                                                               
#> [119] " systemfonts         1.1.0    2024-05-15 [2] CRAN (R 4.4.0)"                                                                               
#> [120] " testthat            3.2.1.1  2024-04-14 [2] CRAN (R 4.4.0)"                                                                               
#> [121] " textshaping         0.4.0    2024-05-24 [2] CRAN (R 4.4.0)"                                                                               
#> [122] " tibble              3.2.1    2023-03-20 [2] CRAN (R 4.4.0)"                                                                               
#> [123] " tidyr               1.3.1    2024-01-24 [2] CRAN (R 4.4.0)"                                                                               
#> [124] " tidyselect          1.2.1    2024-03-11 [2] CRAN (R 4.4.0)"                                                                               
#> [125] " timechange          0.3.0    2024-01-18 [2] CRAN (R 4.4.0)"                                                                               
#> [126] " tweenr              2.0.3    2024-02-26 [2] CRAN (R 4.4.0)"                                                                               
#> [127] " tzdb                0.4.0    2023-05-12 [2] CRAN (R 4.4.0)"                                                                               
#> [128] " urlchecker          1.0.1    2021-11-30 [2] CRAN (R 4.4.0)"                                                                               
#> [129] " usethis             3.0.0    2024-07-29 [2] CRAN (R 4.4.0)"                                                                               
#> [130] " utf8                1.2.4    2023-10-22 [2] CRAN (R 4.4.0)"                                                                               
#> [131] " uuid                1.2-1    2024-07-29 [2] CRAN (R 4.4.0)"                                                                               
#> [132] " vctrs               0.6.5    2023-12-01 [2] CRAN (R 4.4.0)"                                                                               
#> [133] " viridisLite         0.4.2    2023-05-02 [2] CRAN (R 4.4.0)"                                                                               
#> [134] " whisker             0.4.1    2022-12-05 [2] CRAN (R 4.4.0)"                                                                               
#> [135] " withr               3.0.2    2024-10-28 [2] CRAN (R 4.4.1)"                                                                               
#> [136] " writexl             1.5.1    2024-10-04 [2] CRAN (R 4.4.1)"                                                                               
#> [137] " xfun                0.49     2024-10-31 [2] CRAN (R 4.4.1)"                                                                               
#> [138] " xml2                1.3.6    2023-12-04 [2] CRAN (R 4.4.0)"                                                                               
#> [139] " xtable              1.8-4    2019-04-21 [2] CRAN (R 4.4.0)"                                                                               
#> [140] " yaml                2.3.10   2024-07-26 [2] CRAN (R 4.4.0)"                                                                               
#> [141] " zip                 2.3.1    2024-01-27 [2] CRAN (R 4.4.0)"                                                                               
#> [142] ""                                                                                                                                          
#> [143] " [1] /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmptlaQu5/temp_libpath139c928679faf"                                        
#> [144] " [2] /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library"