| fetch_app_upload | R Documentation |
Launch a standalone Shiny app where users can upload a CSV file with GPS coordinates, and the app will automatically download lake boundaries, calculate fetch, and display interactive results.
fetch_app_upload(title = "Lake Fetch Calculator")
title |
Optional app title (default: "Lake Fetch Calculator") |
Requires the shiny, leaflet, and base64enc packages (suggested dependencies).
The app workflow:
Upload a CSV file with latitude/longitude columns
App downloads lake boundaries from OpenStreetMap
Calculates fetch for all uploaded points
Displays interactive map with results
Click anywhere on a lake to analyze additional points
Download results as CSV or GeoPackage
CSV file requirements:
Must have columns starting with "lat" and "lon" (case-insensitive)
Optional "Site" column for point names
Additional columns are preserved in output
Launches a Shiny app (does not return)
if (interactive()) {
# Launch the upload app
fetch_app_upload()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.