R/run.R

Defines functions run_my_app

Documented in run_my_app

#' Runs the shiny app
#' @param ... Further arguments passed to [shiny::shinyAppDir()].
#' @details
#' The app featured in this package is the one presented in the shiny demo:
#' <https://shiny.posit.co/r/getstarted/shiny-basics/lesson1/index.html>.
#'
#' @return
#' Starts the execution of the app, printing the port
#' on the console.
#' @export
#' @examples
#' \donttest{
#' # To be executed interactively only
#' if (interactive()) {
#'   run_my_app()
#' }
#' }
#' @import shiny
#' @importFrom htmltools tags img
#' @importFrom bslib page_sidebar sidebar
#' @importFrom graphics hist
#' @importFrom utils data
#' @export
#'
#'
#'


run_my_app <- function(...) {
  shiny::shinyAppDir(
    system.file("app/", package = "multigroup.vaccine")
  )
}

Try the multigroup.vaccine package in your browser

Any scripts or data that you put into this service are public.

multigroup.vaccine documentation built on Sept. 19, 2026, 1:06 a.m.