get_nhdplus_interactively: Get NHDPlus Interactively
Description
This function allows the user go get NHDPlus realizations interactively with a
shiny app.
Usage
get_nhdplus_interactively(
ns = "hydro-ui",
viewer = shiny::paneViewer(),
title = "NHDPlus",
...
)
Value
A list of sf objects that the user collected during shiny session.
Arguments
- ns
string
name for the Shiny namespace
to use. The ns
is unlikely to require a change.
- viewer
function
for the viewer. See Shiny viewer
.
NOTE: when using browserViewer(browser = getOption("browser"))
to
open the app in the default browser, the browser window will automatically
close when closing the app (by pressing "done" or "cancel") in most browsers.
Firefox is an exception. See Details for instructions on how to enable this
behaviour in Firefox.
- title
string
to customize the title of the UI window. The default
is "NHDPlus".
- ...
other arguments to leafletOutput()
in module.
Examples
Run this code
if(interactive()){
nhdplus_data <- get_nhdplus_interactively()
}
Run the code above in your browser using DataLab