Skip to content

Commit

Permalink
fix up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Aug 29, 2020
1 parent d51c1ff commit e168644
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 58 deletions.
11 changes: 6 additions & 5 deletions R/get_nldi.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,12 @@ type_check <- function(type) {
#' nldi_nwis <- list(featureSource = "nwissite", featureID = "USGS-05428500")
#'
#' navigate_nldi(nldi_feature = nldi_nwis,
#' mode = "upstreamTributaries",
#' data_source = "") %>%
#' mode = "upstreamTributaries") %>%
#' st_geometry() %>%
#' plot()
#'
#' navigate_nldi(nldi_feature = nldi_nwis,
#' mode = "UM",
#' data_source = "") %>%
#' mode = "UM") %>%
#' st_geometry() %>%
#' plot(col = "blue", add = TRUE)
#'
Expand Down Expand Up @@ -148,7 +146,10 @@ navigate_nldi <- function(nldi_feature, mode = "upstreamMain",
}

# For backward compatibility
if(data_source == "flowline") data_source <- "flowlines"
if(data_source == "flowline" | data_source == "") {
data_source <- "flowlines"
warning("data source specified as flowline or '' is deprecated")
}

query <- paste(nldi_feature[["featureSource"]],
nldi_feature[["featureID"]],
Expand Down
29 changes: 15 additions & 14 deletions docs/articles/nhdplusTools.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ articles:
nhdplusTools: nhdplusTools.html
plot_nhdplus: plot_nhdplus.html
point_indexing: point_indexing.html
last_built: 2020-08-29T18:42Z
last_built: 2020-08-29T19:12Z
urls:
reference: https://usgs-r.github.io/nhdplusTools//reference
article: https://usgs-r.github.io/nhdplusTools//articles
Expand Down
Binary file modified docs/reference/navigate_nldi-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e168644

Please sign in to comment.