#' launch shiny app
#'
#' Launch main shiny app in package with usual params of \code{shiny::runApp}
#'
#' @param launch_param param passed at launch time by user
#' @param ... params are passed to shiny::runApp, e.g. port, launch.browser,
#' etc.
#'
#' @return This function normally does not return; interrupt R to stop the
#' application (usually by pressing Ctrl+C or Esc).
#'
#' @import shiny
#'
#' @examples \donttest{runShinyPackageApp(launch.browser = TRUE)}
#' @export
runShinyPackageApp <- function(launch_param = NULL, ...) {
app <- shinyApp(
ui = shinypackage_ui(launch_param),
server = shinypackage_server
)
runApp(app, ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.