R/explore.R

Defines functions explore_site explore_aquifers

Documented in explore_aquifers explore_site

#' Explore data in shiny applications
#' 
#' Open an interactive app in a browser. See the "Shiny App" vignette:
#' \href{../doc/shinyApp.html}{\code{vignette("shinyApp", package = "toxEval")}} for more details. Using this 
#' function is a quick and convenient way
#' to explore data. For more customization, the R-code to 
#' produce each graph and table is displayed in the app. That is 
#' a good starting-point for a custom analysis.
#' 
#' @param browse Logical. Use browser for running Shiny app.
#' @export
#' @rdname shinystuff
#' @examples 
#' \dontrun{
#' explore_aquifers()
#' }
explore_aquifers <- function(browse=TRUE){
  shiny::runApp(system.file('shiny', package='HASP'), launch.browser = browse)
}

#' @rdname shinystuff
#' @export
#' @examples 
#' \dontrun{
#' explore_site()
#' }
explore_site <- function(browse=TRUE){
  shiny::runApp(system.file('single_site', package='HASP'), launch.browser = browse)
}
USGS-R/HASP documentation built on July 28, 2024, 7:53 a.m.