R/app.R

#  app.R
#' @importFrom shiny htmlTemplate addResourcePath runGadget paneViewer

initialize <- function (){
  package <- "mstrio"
  basePath <- system.file("www/", package=package)
  htmlPath <- system.file("www/index.html", package=package)
  ui <- shiny::htmlTemplate(htmlPath)

  shiny::addResourcePath("static", paste0(basePath, "/static"))
  shiny::addResourcePath("shinyjs", system.file("srcjs", package = "shinyjs"))

  shiny::runGadget(app = ui, server=server, port = getOption('shiny.port'), viewer = shiny::paneViewer())
}

Try the mstrio package in your browser

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

mstrio documentation built on April 13, 2022, 5:07 p.m.