R/runviewer.r

Defines functions runviewer

Documented in runviewer

#' to run the shiny web application.
#' @export
runviewer <- function() {

  if (!requireNamespace("shiny", quietly = TRUE)) {
    stop("Package \"shiny\" needed for this function to work. Please install it from CRAN",
         call. = FALSE)
  }

  shiny::runApp(system.file('shiny/africovidviewer', package='africovid'))
}
afrimapr/africovid documentation built on June 2, 2021, 8:57 a.m.