#' Run shiny app
#'
#' This function will call shiny app for your use.
#'
#' @import shiny
#' @export
#' @examples
#' \dontrun{
#' library(TestPMD)
#' runExample()
#' }
runExample <- function() {
appDir <- system.file("shinyEg", "ShinyTestPMD",
package = "TestPMD")
if (appDir == "") {
stop(paste0("Could not find example directory. ",
"Try re-installing `TestPMD`."), call. = FALSE)
}
# the first app will be called
shiny::runApp(appDir[1], display.mode = "normal")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.