From eed6b7972e6be0c381c3b2a60637ba2cdd511555 Mon Sep 17 00:00:00 2001 From: David Blodgett Date: Fri, 8 Apr 2022 11:23:50 -0500 Subject: [PATCH] update news for 0.5.2 -- now on CRAN --- NEWS.md | 19 ++++++++++++++++++- man/get_nldi_characteristics.Rd | 2 ++ man/get_nldi_index.Rd | 4 ++-- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index f1b4efbd..b5f27075 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,11 +1,28 @@ nhdplusTools 0.5.2 ========== -## New Function +[Mike Johnson](https://mikejohnson51.github.io/) is now recognized as an author of `nhdplusTools`. + +New citation: + +``` +> citation("nhdplusTools") + +To cite nhdplusTools in publications, please use: + + Blodgett, D., Johnson, J.M., 2022, nhdplusTools: Tools for Accessing and + Working with the NHDPlus, https://doi.org/10.5066/P97AS8JD +``` + +## New Functions - `map_nhdplus()` works much the same as `plot_nhdplus()` but creates a leaflet map rather than a static plot. +- `get_nldi_index()` is used to call the NLDI web service to retrieve a hydrologic location. ## Improvements - `get_flowline_index()` and `get_waterbody_index()` units and projection handling was altered. Defaults for the `search_radius` input were changed. Coordinate reference system handling in geoprocessing now relies on the CRS of the provided points rather than the flowlines. +- `get_nldi_basin()` now supports precise basin delineation via a logical "split" parameter as well as the option to retrieve un-simplified basin geometry. +- All network-dependent functions in `nhdplusTools` now return a warning and NULL if the web servicee is unavailable or fails for other reasons. This is according to CRAN policy. + nhdplusTools 0.5.1 ========== diff --git a/man/get_nldi_characteristics.Rd b/man/get_nldi_characteristics.Rd index 21c25091..f02a9e7d 100644 --- a/man/get_nldi_characteristics.Rd +++ b/man/get_nldi_characteristics.Rd @@ -22,7 +22,9 @@ Retrieves catchment characteristics from the Network Linked Data Index. Metadata for these characteristics can be found using `discover_nldi_characteristics()`. } \examples{ +\donttest{ chars <- get_nldi_characteristics(list(featureSource = "nwissite", featureID = "USGS-05429700")) names(chars) head(chars$local, 10) } +} diff --git a/man/get_nldi_index.Rd b/man/get_nldi_index.Rd index 6db59946..63196c3b 100644 --- a/man/get_nldi_index.Rd +++ b/man/get_nldi_index.Rd @@ -16,10 +16,10 @@ will use a raindrop trace service to find the nearest downslope flowline location. } \examples{ - +\donttest{ index <- get_nldi_index(c(-89.276, 42.988)) plot_nhdplus(bbox = sf::st_bbox(sf::st_buffer(index[1,], units::set_units(1000, "m")))) plot(sf::st_geometry(sf::st_transform(index, 3857)), add = TRUE) - +} }