diff --git a/R/get_nldi.R b/R/get_nldi.R index b51b20b6..c35d8371 100644 --- a/R/get_nldi.R +++ b/R/get_nldi.R @@ -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) #' @@ -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"]], diff --git a/docs/articles/nhdplusTools.html b/docs/articles/nhdplusTools.html index c86f41f9..c51b24b1 100644 --- a/docs/articles/nhdplusTools.html +++ b/docs/articles/nhdplusTools.html @@ -38,7 +38,7 @@
@@ -127,7 +127,7 @@nhdplus_path(file.path(temp_dir, "natseamless.gpkg")) nhdplus_path() -#> [1] "C:\\Users\\DBLODG~1\\AppData\\Local\\Temp\\4\\Rtmp4UXaWl/natseamless.gpkg"