Populates the supplied session variable for testing.
Usage
CTS_test_mksession(session = list(), full = FALSE)
Value
The CTS portion of the all_sess_res
returned from FM_app_preload
Examples
# \donttest{
session = shiny::MockShinySession$new()
sess_res = CTS_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: 4b26d36d30f4de75c54b9137877b9a09
#> → MB: module checksum updated:4abe8bfff6e676443b4118ec8551dc64
#>
#>
#> ℹ 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: 3fd8674f8ccfb602a4b1cc7cbe986ef8
#> → MB: module checksum updated:aa9c2d74bcbbdb2dc981e49b51fcbd8b
#> → 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: af10f170fddc6445f49f29c6818c007a
#> → MB: module checksum updated:131ec749b879bdf46b0c9d6a34b1466c
#> → 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: 970228baa5a8a0ff064e9856be61ff16
#> → MB: module checksum updated:4b2bcdbb74153009e22376bcaf9edc32
#> → 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: df476e88c375edcecf96018848c1b1a4
#> → MB: module checksum updated:3a29c022dd2d542fc63992d703b13043
#> → MB: added element idx: 2
#> → MB: module isgood: TRUE
#> → CTS: source model change detected
#> → CTS: > covariates reset
#> → CTS: cohort checksum updated: f36de1f868a680bcbdd5c89960185315
#> → CTS: module checksum updated: 154db5755aa65cf1165c0b9127f634db
#> → CTS: State initialized
#> → CTS: loading element idx: 1
#> → CTS: setting cohort name: Single dose
#> → CTS: setting model source: MB_obj_1_rx
#> → CTS: setting trial options:
#> → CTS: - nsub: 3
#> → CTS: - visit_times: 0
#> → CTS: - trial_end: 100
#> → CTS: - fpage: 1
#> → CTS: - dvcols: Cc
#> → CTS: - time_scale:
#> → CTS: - tc_dim: d2x4
#> → CTS: - evplot: 1
#> → CTS: - cts_config_atol: 1e-8
#> → CTS: - cts_config_rtol: 1e-6
#> → CTS: - cts_config_sigdig: NULL
#> → CTS: - cts_config_seed: 5446
#> → CTS: - cts_config_nsteps: 5
#> → CTS: - cts_config_preamble:
#> → CTS: cohort checksum updated: d7ffb1999423306719295822bf457683
#> → CTS: module checksum updated: cd940b1c790c208d690b00d5828fe30b
#> → CTS: adding rule: first_dose
#> → CTS: add rule success
#> → CTS: rule added
#> → CTS: cohort checksum updated: cf5f299c4088faa3c7892934655a9153
#> → CTS: module checksum updated: 64874ad9490b7b8198cedcaff0dbff10
#>
#>
#>
#>
#> Warning: multi-subject simulation without without 'omega'
#>
#>
#> Warning: multi-subject simulation without without 'omega'
#> → CTS: simulation complete
#> → CTS: plot complete
#> → CTS: cohort checksum updated: ef99e8a36b3ace657c440d316f274ccf
#> → CTS: module checksum updated: 70e60097ce0fc6fe6ad4ac582f0f6d1d
#> → CTS: added element idx: 1
#> → CTS: module isgood: TRUE
#> → # preload_complete is good: TRUE ------------------------------------------
# }