Skip to contents

Populates the supplied session variable for testing.

Usage

MB_test_mksession(session = list())

Arguments

session

Shiny session variable (in app) or a list (outside of app)

Value

The MB portion of the all_sess_res returned from FM_app_preload

Examples

session = shiny::MockShinySession$new()
sess_res = MB_test_mksession(session=session)
#> → 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
#> ! MB: User-defined model: /Users/jmh/projects/ruminate/github/ruminate/docs/reference/user_model.R not found (skipping)
#> ! MB: User-defined model: /Users/jmh/projects/ruminate/github/ruminate/docs/reference/user_model.ctl not found (skipping)
#> → MB: module checksum updated:f7de2055542d3ff1b085fafc2d30a1f8
#> → MB: State initialized
#> → MB: loading model idx: 1
#>  
#>  
#>  parameter labels from comments are typically ignored in non-interactive mode
#>  Need to run with the source intact to parse comments
#> → MB: model checksum updated: d828da0a7ecd067bb2a79c5ed6e4455c
#> → MB: module checksum updated:71306681497d4874b4d89bf7d60b9f4e
#>  
#>  
#>  parameter labels from comments are typically ignored in non-interactive mode
#>  Need to run with the source intact to parse comments
#> → MB: model checksum updated: ab83b4fbe68c6a5570410d7fb8e808e9
#> → MB: module checksum updated:e83eacd1e43f5d1b6fc2db8a5b5a4830
#> → MB:   -> setting name: One compartment model
#> → MB:   -> setting time scale: hours
#> → MB:   -> setting base from: user
#> → MB:   -> setting catalog selection: 
#> → MB:   -> setting base model id: manual
#> → MB:   -> setting base model name: manual
#> → MB: model checksum updated: 99ee690a88ba9286e7613762ecf52c27
#> → MB: module checksum updated:38353b451143421fae146e27e906fbe3
#> → MB: added element idx: 1
#> → MB: loading model idx: 2
#>  
#>  
#>  parameter labels from comments are typically ignored in non-interactive mode
#>  Need to run with the source intact to parse comments
#> → MB: model checksum updated: 2f6c9d01d2e9f7d4f977e2023b8b0368
#> → MB: module checksum updated:721cbbbb0e15e762b05bb8b156db7639
#> → MB:   -> setting name: PK Biomarker
#> → MB:   -> setting time scale: days
#> → MB:   -> setting base from: user
#> → MB:   -> setting catalog selection: 
#> → MB:   -> setting base model id: manual
#> → MB:   -> setting base model name: manual
#> → MB: model checksum updated: 9c463709698bd19d432945eb48e768bf
#> → MB: module checksum updated:601c7eb1bfc43a0a24e1dcaec7352630
#> → MB: added element idx: 2
#> → MB: module isgood: TRUE