R/shiny_examples.R

#' @title Run example with shiny
#' @description
#' See some examples in a shiny web application.
#' Both 'am' functions and basic functions are illustrated.
#' 
#' @examples 
#' 
#' \dontrun{
#' if (interactive()) runExamples()
#' }
#' @export 
#' 
runExamples <- function ()
{
  if (!requireNamespace(package = "shiny"))
    message("Package 'shiny' is required to run this function")
  
  if (!requireNamespace(package = "shinydashboard"))
    message("Package 'shinydashboard' is required to run this function")
  
  if (!requireNamespace(package = "pipeR"))
    message("Package 'pipeR' is required to run this function")
  
  if (!requireNamespace(package = "data.table"))
    message("Package 'data.table' is required to run this function")
  
  shiny::shinyAppDir(appDir = system.file("shiny", package="rAmCharts"))
}

Try the rAmCharts package in your browser

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

rAmCharts documentation built on Sept. 30, 2022, 5:06 p.m.