##' @name runShiny
##' @title Run shiny app
##' @description Run shiny app to show the weather information.
##' @usage runShiny()
##' @return a shiny app
##' @import shiny
##' @examples
##' \dontrun{
##' runShiny()
##' }
##' @export
runShiny <- function() {
appDir <- system.file("shiny-examples", "myapp", package = "weatherstar")
if (appDir == "") {
stop("Could not find example directory. Try re-installing `weatherstar`.", call. = FALSE)
}
shiny::runApp(appDir, display.mode = "normal")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.