R/exploredata.R

Defines functions exploreData

Documented in exploreData

######################## exploreData ###################################

#' Run a web application to explore the processed nightlight data cached
#'     locally
#'
#' Run a web application to perform some exploratory data analysis. The
#'     application written in shiny either loads demo data or the data 
#'     processed and cached locally.
#'
#' @return None
#'
#' @examples
#' \dontrun{
#' exploreData()
#' }
#'
#' @export
exploreData <- function()
{
  appDir <- system.file("application", package = "Rnightlights")
  if (appDir == "")
  {
    stop(Sys.time(), ": Could not find application directory.
         Try re-installing the `Rnightlights` package.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
}

Try the Rnightlights package in your browser

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

Rnightlights documentation built on Aug. 29, 2019, 5:02 p.m.