diff --git a/.Rbuildignore b/.Rbuildignore
index ca5736d4..8e258972 100644
--- a/.Rbuildignore
+++ b/.Rbuildignore
@@ -4,7 +4,6 @@
LICENSE
.travis.yml
.lintr
-inst/doc/*.html
docs
_pkgdown.yml
data-raw
@@ -29,3 +28,6 @@ revdep
CLAUDE.md
dev
.claude
+inst/build
+vignettes/drainage_area_figures
+PLAN.md
diff --git a/.gitattributes b/.gitattributes
index 176a458f..63fca60e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,3 @@
* text=auto
+
+pkgdown/assets/slides/3dhp_tools_gwtc_2026.html linguist-vendored
\ No newline at end of file
diff --git a/DESCRIPTION b/DESCRIPTION
index e0fad5cb..c76290e8 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -30,7 +30,6 @@ Depends:
R (>= 4.1)
Imports: hydroloom, dataRetrieval, dplyr, sf, units, magrittr, jsonlite, httr, xml2, R.utils, utils, tidyr, methods, maptiles, mapsf, fst, arrow, tools, zip, pbapply, memoise, digest
Suggests: testthat, knitr, rmarkdown, ggmap, ggplot2, lwgeom, gifski, leaflet, httptest, future, future.apply, StreamCatTools, terra
-Remotes: doi-usgs/hydroloom
License: CC0
Encoding: UTF-8
RoxygenNote: 7.3.3
diff --git a/DISCLAIMER.md b/DISCLAIMER.md
index 78d12505..83aa9400 100644
--- a/DISCLAIMER.md
+++ b/DISCLAIMER.md
@@ -1,8 +1,11 @@
Disclaimer
==========
-This software has been approved for release by the U.S. Geological Survey (USGS). Although the software has been subjected to rigorous review, the USGS reserves the right to update the software as needed pursuant to further analysis and review. No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. Furthermore, the software is released on condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from its authorized or unauthorized use.
-
-From: https://www2.usgs.gov/fsp/fsp_disclaimers.asp#5
-
-This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the [official USGS copyright policy](https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits "official USGS copyright policy")
+This software is preliminary or provisional and is subject to revision. It is
+being provided to meet the need for timely best science. The software has not
+received final approval by the U.S. Geological Survey (USGS). No warranty,
+expressed or implied, is made by the USGS or the U.S. Government as to the
+functionality of the software and related material nor shall the fact of release
+constitute any such warranty. The software is provided on the condition that
+neither the USGS nor the U.S. Government shall be held liable for any damages
+resulting from the authorized or unauthorized use of the software.
\ No newline at end of file
diff --git a/NEWS.md b/NEWS.md
index 92cf38c7..d46199f7 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,7 +1,7 @@
nhdplusTools 1.5.0
==========
-nhdplusTools 1.5.0 will be the last minor release of nhdplusTools before the package is renamed. Path releases may occur to fix minor issues or change things necessary for the name change, but the API is effectively frozen and all new dvelopment will go toward the replacement package `hydrogeofetch`. For more, see the README.md.
+nhdplusTools 1.5.0 will be the last minor release of nhdplusTools before the package is renamed. Path releases may occur to fix minor issues or change things necessary for the name change, but the API is effectively frozen and all new development will go toward the replacement package `hydrogeofetch`. For more, see the README.md.
This release adds drainage area estimation tooling that combines HUC12 areas with NHDPlusV2 catchments to produce drainage area estimates at arbitrary points on the network.
diff --git a/R/downloading_tools.R b/R/downloading_tools.R
index b280c19c..d8d3124f 100644
--- a/R/downloading_tools.R
+++ b/R/downloading_tools.R
@@ -265,9 +265,9 @@ download_rf1 <- function(outdir,
message("Extracting data ...")
- R.utils::gunzip(file, remove = FALSE, skip = T)
+ R.utils::gunzip(file, remove = FALSE, skip = TRUE)
- path <- list.files(outdir, full.names = T)[!grepl("gz", list.files(outdir))]
+ path <- list.files(outdir, full.names = TRUE)[!grepl("gz", list.files(outdir))]
path <- path[grepl("rf1", path)]
message(paste("RF1 data extracted to:", path))
@@ -291,7 +291,7 @@ download_rf1 <- function(outdir,
downloader <- function(dir, url, type, progress = TRUE){
if (!dir.exists(dir)) {
- dir.create(dir, recursive = T)
+ dir.create(dir, recursive = TRUE)
}
file <- file.path(dir, basename(url))
diff --git a/README.Rmd b/README.Rmd
index 0eb53243..03c02736 100644
--- a/README.Rmd
+++ b/README.Rmd
@@ -171,6 +171,16 @@ Given this, the package should be built locally to include vignettes using:
devtools::build()
```
+An additional CRAN build environment variable also must be set to avoid submitting a vignette with very large embedded images.
+
+```r
+Sys.setenv(BUILD_VIGNETTES = "TRUE", BUILD_VIGNETTES_CRAN = "TRUE")
+devtools::build()
+
+
+devtools::release()
+```
+
### Check notes:
In addition to typical R package checking, a Dockerfile is included in this repository. Once built, it can be run with the following command.
diff --git a/README.md b/README.md
index 13890b8a..36dc6012 100644
--- a/README.md
+++ b/README.md
@@ -11,11 +11,12 @@ Downloads](https://cranlogs.r-pkg.org/badges/grand-total/nhdplusTools)](https://
## Renaming to `hydrogeofetch`
-`nhdplusTools` is being renamed to `hydrogeofetch` (hydrologic geospatial
-fabric extraction tool chain). The package’s scope has grown beyond
-NHDPlus, and the name is no longer accurate. `hydrogeofetch` will be a
-pure rename. Functions, function signatures, behavior, will all stay the
-same. `hydrogeofetch` will be published to CRAN as a new package.
+`nhdplusTools` is being renamed to `hydrogeofetch` (hydrologic
+geospatial fabric extraction tool chain). The package’s scope has grown
+beyond NHDPlus, and the name is no longer accurate. `hydrogeofetch` will
+be a pure rename. Functions, function signatures, behavior, will all
+stay the same. `hydrogeofetch` will be published to CRAN as a new
+package.
Development on `nhdplusTools` has stopped; only critical bug fixes will
be applied. Once `hydrogeofetch` v1.0 is released, `nhdplusTools` will
@@ -208,6 +209,17 @@ using:
devtools::build()
```
+An additional CRAN build environment variable also must be set to avoid
+submitting a vignette with very large embedded images.
+
+``` r
+Sys.setenv(BUILD_VIGNETTES = "TRUE", BUILD_VIGNETTES_CRAN = "TRUE")
+devtools::build()
+
+
+devtools::release()
+```
+
### Check notes:
In addition to typical R package checking, a Dockerfile is included in
@@ -262,23 +274,14 @@ documentation. - this package uses pkgdown. Running
# Disclaimer
-This software has been approved for release by the U.S. Geological
-Survey (USGS). Although the software has been subjected to rigorous
-review, the USGS reserves the right to update the software as needed
-pursuant to further analysis and review. No warranty, expressed or
-implied, is made by the USGS or the U.S. Government as to the
-functionality of the software and related material nor shall the fact of
-release constitute any such warranty. Furthermore, the software is
-released on condition that neither the USGS nor the U.S. Government
-shall be held liable for any damages resulting from its authorized or
-unauthorized use.
-
-From: When working in this repo, treat This software has been approved for release by the U.S. Geological Survey (USGS). Although the software has been subjected to rigorous review, the USGS reserves the right to update the software as needed pursuant to further analysis and review. No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. Furthermore, the software is released on condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from its authorized or unauthorized use. From: https://www2.usgs.gov/fsp/fsp_disclaimers.asp#5 This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the official USGS copyright policy This software is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The software has not received final approval by the U.S. Geological Survey (USGS). No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. The software is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the software.NA
+Rename to
+hydrogeofetch
+nhdplusTools is being renamed to hydrogeofetch (hydrologic geospatial fabric extraction tool chain) with a 2-year sunset ending October 2028, at which point nhdplusTools will be archived on CRAN.hydrogeofetch v1.0. No renames or signature changes during the sunset — the shim depends on stability. Cleanup happens post-archive or in hydrogeofetch 2.0 with its own deprecation cycle.hydrogeofetch v1.0 is a drop-in equivalent with some non-breaking updates.nhdplusTools API is frozen. Critical bug fixes only — no features, no refactors, unless explicitly asked.hydrogeofetch is on CRAN, nhdplusTools becomes function-level .Deprecated() aliases forwarding to hydrogeofetch::*. Maintained as a branch in the renamed repo.hydrogeofetch (preserves issues, PRs, redirects). Timing within the sunset window.hydrogeofetch replaces the cache layer with no migration; users re-download on switch.amadeus, elfgen, StreamCatTools — coordinate directly.hydrogeofetch gets a new USGS software release on code.usgs.gov with its own DOI. The existing nhdplusTools DOI will redirect to a historical release page for hydrogeofetch.hydrogeofetch starts as soon as the renamed code is on GitHub, before CRAN submission.nhdplusTools as frozen and hydrogeofetch v1.x as the future canonical line. Avoid signature changes to public functions — they break the shim.Commands
devtools::test()Commandsdevtools::check() — R CMD check
devtools::document() — rebuild roxygen docs/c/Users/dblodgett/AppData/Local/Programs/R/R-4.5.2/bin/Rscript.exe
-Style
diff --git a/docs/DISCLAIMER.html b/docs/DISCLAIMER.html
index 67633441..530c10c2 100644
--- a/docs/DISCLAIMER.html
+++ b/docs/DISCLAIMER.html
@@ -17,7 +17,7 @@
Disclaimer
https://doi-usgs.github.io/nhdplusTools/articles/drainage_area_estimation.html.
get_drainage_area_estimates() combines Watershed
Boundary Dataset (WBD) delineations and non-surface-contributing area
estimates with National Hydrography Dataset Plus version 2 (NHDPlusV2)
diff --git a/docs/articles/index.html b/docs/articles/index.html
index 90611531..7a3eb3bf 100644
--- a/docs/articles/index.html
+++ b/docs/articles/index.html
@@ -17,7 +17,7 @@
diff --git a/docs/articles/nhdplushr.html b/docs/articles/nhdplushr.html
index 794faffe..bb06164c 100644
--- a/docs/articles/nhdplushr.html
+++ b/docs/articles/nhdplushr.html
@@ -37,7 +37,7 @@
diff --git a/docs/articles/nhdplushr_files/figure-html/plot-1.png b/docs/articles/nhdplushr_files/figure-html/plot-1.png
index 3c20eda7..cc63d982 100644
Binary files a/docs/articles/nhdplushr_files/figure-html/plot-1.png and b/docs/articles/nhdplushr_files/figure-html/plot-1.png differ
diff --git a/docs/articles/nhdplushr_files/figure-html/tldr-1.png b/docs/articles/nhdplushr_files/figure-html/tldr-1.png
index 4c3b0685..fc69e876 100644
Binary files a/docs/articles/nhdplushr_files/figure-html/tldr-1.png and b/docs/articles/nhdplushr_files/figure-html/tldr-1.png differ
diff --git a/docs/authors.html b/docs/authors.html
index 1218ca3a..c7af909b 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -17,7 +17,7 @@
@@ -89,7 +89,7 @@
hydrogeofetch
+
+nhdplusTools is being renamed to hydrogeofetch (hydrologic geospatial fabric extraction tool chain). The package’s scope has grown beyond NHDPlus, and the name is no longer accurate. hydrogeofetch will be a pure rename. Functions, function signatures, behavior, will all stay the same. hydrogeofetch will be published to CRAN as a new package.
Development on nhdplusTools has stopped; only critical bug fixes will be applied. Once hydrogeofetch v1.0 is released, nhdplusTools will become a deprecation shim that forwards calls to hydrogeofetch with a deprecation warnings. The shim will remain on CRAN until October 2028, at which point nhdplusTools will be archived. Archived packages stay installable from the CRAN archive, so code pinned to nhdplusTools will continue to run.
Plan to switch to hydrogeofetch once v1.0 is available.
Follow this repository to keep up to date!
+This information is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The information has not received final approval by the U.S. Geological Survey (USGS) and is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the information.
-From: https://www.usgs.gov/office-of-science-quality-and-integrity/fundamental-science-practices#5
-This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the official USGS copyright policy
-Although this software program has been used by the USGS, no warranty, expressed or implied, is made by the USGS or the U.S. Government as to the accuracy and functioning of the program and related program material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith. This software is provided “AS IS.”
+This software is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The software has not received final approval by the U.S. Geological Survey (USGS). No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. The software is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the software.
nhdplusTools 1.5.0 will be the last minor release of nhdplusTools before the package is renamed. Path releases may occur to fix minor issues or change things necessary for the name change, but the API is effectively frozen and all new development will go toward the replacement package hydrogeofetch. For more, see the README.md.
This release adds drainage area estimation tooling that combines HUC12 areas with NHDPlusV2 catchments to produce drainage area estimates at arbitrary points on the network.
New get_drainage_area_estimates() returns total and contributing-only drainage area estimates at HUC12, HUC10, and HUC08 resolutions, alongside a network-derived comparison value and an optional NHDPlusHR-catchment estimate. Non-contributing areas (from the HUC12 ncontrb_a attribute) are accounted for.
Between the start point and the nearest upstream HUC12 outlets, NHDPlusV2 catchment areas are used; upstream of those outlets, HUC12 areas are used. The outlet catchment is split at the start point when it is more than outlet_split_threshold_m upstream of the catchment outlet.