2022-05-07 17:54:23 +02:00
|
|
|
#' Run the application server.
|
|
|
|
|
#'
|
2022-05-12 13:37:53 +02:00
|
|
|
#' @param host The hostname to serve the application on.
|
2022-05-07 17:54:23 +02:00
|
|
|
#' @param port The port to serve the application on.
|
2022-12-02 15:16:37 +01:00
|
|
|
#' @param custom_dataset This allows to set a custom dataset (return value of
|
|
|
|
|
#' [analyze()]) as the default dataset of the UI.
|
2022-05-07 17:54:23 +02:00
|
|
|
#'
|
|
|
|
|
#' @export
|
2022-12-02 15:16:37 +01:00
|
|
|
run_app <- function(host = "127.0.0.1",
|
|
|
|
|
port = 3464,
|
|
|
|
|
custom_dataset = NULL) {
|
|
|
|
|
runApp(
|
|
|
|
|
shinyApp(
|
|
|
|
|
ui(custom_dataset = custom_dataset),
|
|
|
|
|
server(custom_dataset = custom_dataset)
|
|
|
|
|
),
|
|
|
|
|
host = host,
|
|
|
|
|
port = port
|
|
|
|
|
)
|
2022-05-07 17:54:23 +02:00
|
|
|
}
|