#' Run interactive FreqProf example (Shiny App)
#'
#' @export
#' @examples
#' # Only run this example in interactive R sessions
#' if(interactive()) {
#' runEx()
#' }
runEx <- function() {
appDir <- system.file("shinyapp", package = "FreqProf")
if(appDir == "") {
stop("Could not find example directory. Try reinstalling `FreqProf`.",
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.