R/web.flora.R

Defines functions web.flora

Documented in web.flora

#' Web front end
#' 
#' This function starts a local webserver to run the shiny app distributed with
#' the package.
#' 
#' @export
web.flora <- function() {
  if (requireNamespace("shiny", quietly = TRUE)) {
    message("Press escape at any time to stop the application.\n")
    shiny::runApp(system.file("plantminer", package = "flora"))
  } else {
    stop("shiny needed for this function to work. Please install it.",
         call. = FALSE)
  }
  
}

Try the flora package in your browser

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

flora documentation built on April 28, 2020, 9:05 a.m.