R/launch_app.R

Defines functions launch_app

Documented in launch_app

#' Generate the shiny application : **Covid19: The Battle of Independence**
#' 
#' @description launch_app( ) builds and produces the shiny application _Covid19: The Battle of Independence._ The application
#' displays a comparative and interactive analysis between the impact and response to covid19 between Ireland and the United Kingdom.  
#' 
#' @export
launch_app <- function() {
  appDir <- system.file("app", package = "covid19BFI")
  if (appDir == "") {
    stop("Could not find app directory. Try re-installing `covid19BFI`.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
} 

#'@usage
#'
#'@return Will generate the **Covid19: The Battle of Independence** application.
#'
#'@author Samuel Lyubic
etc5523-2020/r-package-assessment-samuellyu-2021 documentation built on Jan. 1, 2021, 1:13 a.m.