Returns a fully wired shiny::shinyApp() object: use it to deploy the
workbench, to mount it behind a router, or to run it yourself.
Details
Prefer this to assembling sdt_app_ui() and sdt_app_server() by hand.
The package serves its own logo from an addResourcePath() mount, and that
registration is process-local: an app object built in one process and
served from another registers nothing in the process that answers the
request. This constructor mounts the assets from onStart, which runs in
the serving process before it takes any request.
See also
sdt_run_app() to launch it, sdt_app_ui() and
sdt_app_server() for the pieces.
Examples
if (requireNamespace("shiny", quietly = TRUE) &&
requireNamespace("bslib", quietly = TRUE)) {
app <- sdt_app()
class(app)
}
#> [1] "shiny.appobj"