#' RunApp
#'
#' @details This function launches the application located in inst/ directory
#'
#' @return Opens an interactive ShinnyApp window
#'
#' @export
#'
#' @importFrom shiny runApp
#'
#' @examples
#'\dontrun{
#' RunApp()
#' }
RunApp <- function() {
# appDir <- system.file("app", package = "TreeData")
appDir <- "inst/app"
if (appDir == "") {
stop("Could not find the Shiny app. Try re-installing the `TreeData` package.", call. = FALSE)
}
runApp(appDir, display.mode = "normal")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.