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.

  • modules: List with formods module IDs used in the app as the element names. Each contains details about that module.

  • 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: setting word placeholders: 
#> → ASM:   -> setting docx ph: HEADERLEFT = left header
#> → ASM:   -> setting docx ph: HEADERRIGHT = right header
#> → ASM:   -> setting docx ph: FOOTERLEFT = left footer
#> → 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/RtmpoDSQYi/temp_libpath1208f55c5082b/formods/templates/formods.yaml"
#>   [5] "MOD_yaml_file: /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmpoDSQYi/temp_libpath1208f55c5082b/formods/templates/ASM.yaml"   
#>   [6] "User files: /var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T//RtmplVGn3w/non_shiny/FM"                                                     
#>   [7] "Log file: /var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T//RtmplVGn3w/non_shiny/FM/formods_log.txt"                                       
#>   [8] "ID: UD"                                                                                                                                    
#>   [9] "type: UD"                                                                                                                                  
#>  [10] "FM_yaml_file: /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmpoDSQYi/temp_libpath1208f55c5082b/formods/templates/formods.yaml"
#>  [11] "MOD_yaml_file: /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmpoDSQYi/temp_libpath1208f55c5082b/formods/templates/UD.yaml"    
#>  [12] "User files: /var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T//RtmplVGn3w/non_shiny/FM"                                                     
#>  [13] "Log file: /var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T//RtmplVGn3w/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.7    2024-09-26 [2] CRAN (R 4.4.1)"                                                                               
#>  [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-3    2024-09-27 [2] CRAN (R 4.4.1)"                                                                               
#>  [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] " crosstalk           1.2.1    2023-11-23 [2] CRAN (R 4.4.0)"                                                                               
#>  [31] " curl                6.0.1    2024-11-14 [2] CRAN (R 4.4.1)"                                                                               
#>  [32] " data.table          1.16.4   2024-12-06 [2] CRAN (R 4.4.1)"                                                                               
#>  [33] " desc                1.4.3    2023-12-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [34] " devtools            2.4.5    2022-10-11 [2] CRAN (R 4.4.0)"                                                                               
#>  [35] " digest              0.6.37   2024-08-19 [2] CRAN (R 4.4.1)"                                                                               
#>  [36] " downlit             0.4.4    2024-06-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [37] " dplyr               1.1.4    2023-11-17 [2] CRAN (R 4.4.0)"                                                                               
#>  [38] " DT                  0.33     2024-04-04 [2] CRAN (R 4.4.0)"                                                                               
#>  [39] " ellipsis            0.3.2    2021-04-29 [2] CRAN (R 4.4.0)"                                                                               
#>  [40] " evaluate            1.0.1    2024-10-10 [2] CRAN (R 4.4.1)"                                                                               
#>  [41] " fansi               1.0.6    2023-12-08 [2] CRAN (R 4.4.0)"                                                                               
#>  [42] " farver              2.1.2    2024-05-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [43] " fastmap             1.2.0    2024-05-15 [2] CRAN (R 4.4.0)"                                                                               
#>  [44] " flextable           0.9.7    2024-10-27 [2] CRAN (R 4.4.1)"                                                                               
#>  [45] " fontawesome         0.5.3    2024-11-16 [2] CRAN (R 4.4.1)"                                                                               
#>  [46] " fontBitstreamVera   0.1.1    2017-02-01 [2] CRAN (R 4.4.0)"                                                                               
#>  [47] " fontLiberation      0.1.0    2016-10-15 [2] CRAN (R 4.4.0)"                                                                               
#>  [48] " fontquiver          0.2.1    2017-02-01 [2] CRAN (R 4.4.0)"                                                                               
#>  [49] " formods           * 0.2.0    2024-12-21 [1] local"                                                                                        
#>  [50] " Formula             1.2-5    2023-02-24 [2] CRAN (R 4.4.0)"                                                                               
#>  [51] " fs                  1.6.5    2024-10-30 [2] CRAN (R 4.4.1)"                                                                               
#>  [52] " gdtools             0.4.1    2024-11-04 [2] CRAN (R 4.4.1)"                                                                               
#>  [53] " generics            0.1.3    2022-07-05 [2] CRAN (R 4.4.0)"                                                                               
#>  [54] " ggforce             0.4.2    2024-02-19 [2] CRAN (R 4.4.0)"                                                                               
#>  [55] " ggplot2             3.5.1    2024-04-23 [2] CRAN (R 4.4.0)"                                                                               
#>  [56] " ggpubr              0.6.0    2023-02-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [57] " ggsignif            0.6.4    2022-10-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [58] " glue                1.8.0    2024-09-30 [2] CRAN (R 4.4.1)"                                                                               
#>  [59] " gtable              0.3.6    2024-10-25 [2] CRAN (R 4.4.1)"                                                                               
#>  [60] " gtools              3.9.5    2023-11-20 [2] CRAN (R 4.4.0)"                                                                               
#>  [61] " here                1.0.1    2020-12-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [62] " hms                 1.1.3    2023-03-21 [2] CRAN (R 4.4.0)"                                                                               
#>  [63] " htmltools           0.5.8.1  2024-04-04 [2] CRAN (R 4.4.0)"                                                                               
#>  [64] " htmlwidgets         1.6.4    2023-12-06 [2] CRAN (R 4.4.0)"                                                                               
#>  [65] " httpuv              1.6.15   2024-03-26 [2] CRAN (R 4.4.0)"                                                                               
#>  [66] " httr                1.4.7    2023-08-15 [2] CRAN (R 4.4.0)"                                                                               
#>  [67] " httr2               1.0.7    2024-11-26 [2] CRAN (R 4.4.1)"                                                                               
#>  [68] " janitor             2.2.0    2023-02-02 [2] CRAN (R 4.4.0)"                                                                               
#>  [69] " jquerylib           0.1.4    2021-04-26 [2] CRAN (R 4.4.0)"                                                                               
#>  [70] " jsonlite            1.8.9    2024-09-20 [2] CRAN (R 4.4.1)"                                                                               
#>  [71] " knitr               1.49     2024-11-08 [2] CRAN (R 4.4.1)"                                                                               
#>  [72] " labeling            0.4.3    2023-08-29 [2] CRAN (R 4.4.0)"                                                                               
#>  [73] " later               1.4.1    2024-11-27 [2] CRAN (R 4.4.1)"                                                                               
#>  [74] " lazyeval            0.2.2    2019-03-15 [2] CRAN (R 4.4.0)"                                                                               
#>  [75] " lifecycle           1.0.4    2023-11-07 [2] CRAN (R 4.4.0)"                                                                               
#>  [76] " lubridate           1.9.4    2024-12-08 [2] CRAN (R 4.4.1)"                                                                               
#>  [77] " magrittr            2.0.3    2022-03-30 [2] CRAN (R 4.4.0)"                                                                               
#>  [78] " MASS                7.3-61   2024-06-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [79] " memoise             2.0.1    2021-11-26 [2] CRAN (R 4.4.0)"                                                                               
#>  [80] " mime                0.12     2021-09-28 [2] CRAN (R 4.4.0)"                                                                               
#>  [81] " miniUI              0.1.1.1  2018-05-18 [2] CRAN (R 4.4.0)"                                                                               
#>  [82] " munsell             0.5.1    2024-04-01 [2] CRAN (R 4.4.0)"                                                                               
#>  [83] " officer             0.6.7    2024-10-09 [2] CRAN (R 4.4.1)"                                                                               
#>  [84] " onbrand             1.0.7    2024-11-30 [2] Github (john-harrold/onbrand@3442266)"                                                        
#>  [85] " openssl             2.3.0    2024-12-16 [2] CRAN (R 4.4.1)"                                                                               
#>  [86] " pillar              1.10.0   2024-12-17 [2] CRAN (R 4.4.1)"                                                                               
#>  [87] " pkgbuild            1.4.5    2024-10-28 [2] CRAN (R 4.4.1)"                                                                               
#>  [88] " pkgconfig           2.0.3    2019-09-22 [2] CRAN (R 4.4.0)"                                                                               
#>  [89] " pkgdown             2.1.1    2024-09-17 [2] CRAN (R 4.4.1)"                                                                               
#>  [90] " pkgload             1.4.0    2024-06-28 [2] CRAN (R 4.4.0)"                                                                               
#>  [91] " plotly              4.10.4   2024-01-13 [2] CRAN (R 4.4.0)"                                                                               
#>  [92] " polyclip            1.10-7   2024-07-23 [2] CRAN (R 4.4.0)"                                                                               
#>  [93] " profvis             0.4.0    2024-09-20 [2] CRAN (R 4.4.1)"                                                                               
#>  [94] " promises            1.3.2    2024-11-28 [2] CRAN (R 4.4.1)"                                                                               
#>  [95] " prompter            1.2.0    2024-04-08 [2] CRAN (R 4.4.0)"                                                                               
#>  [96] " purrr               1.0.2    2023-08-10 [2] CRAN (R 4.4.0)"                                                                               
#>  [97] " R6                  2.5.1    2021-08-19 [2] CRAN (R 4.4.0)"                                                                               
#>  [98] " ragg                1.3.3    2024-09-11 [2] CRAN (R 4.4.1)"                                                                               
#>  [99] " rappdirs            0.3.3    2021-01-31 [2] CRAN (R 4.4.0)"                                                                               
#> [100] " Rcpp                1.0.13-1 2024-11-02 [2] CRAN (R 4.4.1)"                                                                               
#> [101] " readr               2.1.5    2024-01-10 [2] CRAN (R 4.4.0)"                                                                               
#> [102] " readxl              1.4.3    2023-07-06 [2] CRAN (R 4.4.0)"                                                                               
#> [103] " remotes             2.5.0    2024-03-17 [2] CRAN (R 4.4.0)"                                                                               
#> [104] " rex                 1.2.1    2021-11-26 [2] CRAN (R 4.4.0)"                                                                               
#> [105] " rhandsontable       0.3.8    2021-05-27 [2] CRAN (R 4.4.0)"                                                                               
#> [106] " rlang               1.1.4    2024-06-04 [2] CRAN (R 4.4.0)"                                                                               
#> [107] " rmarkdown           2.29     2024-11-04 [2] CRAN (R 4.4.1)"                                                                               
#> [108] " rprojroot           2.0.4    2023-11-05 [2] CRAN (R 4.4.0)"                                                                               
#> [109] " rstatix             0.7.2    2023-02-01 [2] CRAN (R 4.4.0)"                                                                               
#> [110] " rstudioapi          0.17.1   2024-10-22 [2] CRAN (R 4.4.1)"                                                                               
#> [111] " sass                0.4.9    2024-03-15 [2] CRAN (R 4.4.0)"                                                                               
#> [112] " scales              1.3.0    2023-11-28 [2] CRAN (R 4.4.0)"                                                                               
#> [113] " sessioninfo         1.2.2    2021-12-06 [2] CRAN (R 4.4.0)"                                                                               
#> [114] " shiny               1.10.0   2024-12-14 [2] CRAN (R 4.4.1)"                                                                               
#> [115] " shinyAce            0.4.3    2024-10-19 [2] CRAN (R 4.4.1)"                                                                               
#> [116] " shinybusy           0.3.3    2024-03-09 [2] CRAN (R 4.4.0)"                                                                               
#> [117] " shinydashboard      0.7.2    2021-09-30 [2] CRAN (R 4.4.0)"                                                                               
#> [118] " shinyWidgets        0.8.7    2024-09-23 [2] CRAN (R 4.4.1)"                                                                               
#> [119] " snakecase           0.11.1   2023-08-27 [2] CRAN (R 4.4.0)"                                                                               
#> [120] " stringi             1.8.4    2024-05-06 [2] CRAN (R 4.4.0)"                                                                               
#> [121] " stringr             1.5.1    2023-11-14 [2] CRAN (R 4.4.0)"                                                                               
#> [122] " systemfonts         1.1.0    2024-05-15 [2] CRAN (R 4.4.0)"                                                                               
#> [123] " testthat            3.2.2    2024-12-10 [2] CRAN (R 4.4.1)"                                                                               
#> [124] " textshaping         0.4.1    2024-12-06 [2] CRAN (R 4.4.1)"                                                                               
#> [125] " tibble              3.2.1    2023-03-20 [2] CRAN (R 4.4.0)"                                                                               
#> [126] " tidyr               1.3.1    2024-01-24 [2] CRAN (R 4.4.0)"                                                                               
#> [127] " tidyselect          1.2.1    2024-03-11 [2] CRAN (R 4.4.0)"                                                                               
#> [128] " timechange          0.3.0    2024-01-18 [2] CRAN (R 4.4.0)"                                                                               
#> [129] " tweenr              2.0.3    2024-02-26 [2] CRAN (R 4.4.0)"                                                                               
#> [130] " tzdb                0.4.0    2023-05-12 [2] CRAN (R 4.4.0)"                                                                               
#> [131] " urlchecker          1.0.1    2021-11-30 [2] CRAN (R 4.4.0)"                                                                               
#> [132] " usethis             3.1.0    2024-11-26 [2] CRAN (R 4.4.1)"                                                                               
#> [133] " utf8                1.2.4    2023-10-22 [2] CRAN (R 4.4.0)"                                                                               
#> [134] " uuid                1.2-1    2024-07-29 [2] CRAN (R 4.4.0)"                                                                               
#> [135] " vctrs               0.6.5    2023-12-01 [2] CRAN (R 4.4.0)"                                                                               
#> [136] " viridisLite         0.4.2    2023-05-02 [2] CRAN (R 4.4.0)"                                                                               
#> [137] " whisker             0.4.1    2022-12-05 [2] CRAN (R 4.4.0)"                                                                               
#> [138] " withr               3.0.2    2024-10-28 [2] CRAN (R 4.4.1)"                                                                               
#> [139] " writexl             1.5.1    2024-10-04 [2] CRAN (R 4.4.1)"                                                                               
#> [140] " xfun                0.49     2024-10-31 [2] CRAN (R 4.4.1)"                                                                               
#> [141] " xml2                1.3.6    2023-12-04 [2] CRAN (R 4.4.0)"                                                                               
#> [142] " xtable              1.8-4    2019-04-21 [2] CRAN (R 4.4.0)"                                                                               
#> [143] " yaml                2.3.10   2024-07-26 [2] CRAN (R 4.4.0)"                                                                               
#> [144] " zip                 2.3.1    2024-01-27 [2] CRAN (R 4.4.0)"                                                                               
#> [145] ""                                                                                                                                          
#> [146] " [1] /private/var/folders/pq/7srbf_fx3rd3k706hgxkg61r0000gp/T/RtmpoDSQYi/temp_libpath1208f55c5082b"                                        
#> [147] " [2] /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library"