R/guidelines_shiny.R

Defines functions guidelines_shiny

Documented in guidelines_shiny

#' @rdname guidelines
#' @inheritParams shiny::runApp
#' @param ... Other parameters given to [shiny::runApp()]
#' @export
guidelines_shiny <- function(
  dataset = NULL,
  answers = answer_questions(dataset = dataset),
  port = NULL,
  launch.browser = TRUE,
  host = NULL,
  ...
  ) {

  app <- shiny::shinyApp(
    shiny_ui(),
    shiny_server(answers = answers)
  )

  shiny::runApp(
    app,
    port = port,
    launch.browser = launch.browser,
    host = host,
    ...
  )
}
dynverse/dynguidelines documentation built on July 4, 2020, 9:09 p.m.