Populates the supplied session variable for testing.
Arguments
- session
Shiny session variable (in app) or a list (outside of app)
- id
An ID string that corresponds with the ID used to call the modules UI elements
Value
list with the following elements
isgood: Boolean indicating the exit status of the function.
session: The value Shiny session variable (in app) or a list (outside of app) after initialization.
input: The value of the shiny input at the end of the session initialization.
state: App state.
rsc: The
react_state
components.
Examples
res = UD_test_mksession(session=list())
#> → 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