Skip to content

Commit

Permalink
Merge pull request #168 from dblodgett-usgs/master
Browse files Browse the repository at this point in the history
avoid CRAN failures when geoserver down
  • Loading branch information
dblodgett-usgs authored Nov 13, 2020
2 parents c8f8b6d + d0fa7e4 commit 20f0019
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ nhdplusTools 0.3.16
==========
* `subset_nhdplus()` now validates geometry and ensures all outputs are in NAD83
* `subset_nhdplus()` queries the NHDPlus database rather than loading then filtering
* `get_levelpaths()` rewritten for performance. Package now uses `data.table`.

nhdplusTools 0.3.15
==========
Expand Down
1 change: 1 addition & 0 deletions R/get_paths.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ get_path <- function(x, tailID, status) {
x <- data.table::data.table(x)
}

toID <- NULL
while(keep_going) {
# May be more than 1
if(dt) {
Expand Down
2 changes: 2 additions & 0 deletions R/index_nhdplus.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ matcher <- function(coords, points, search_radius, max_matches = 1) {
#' @importFrom magrittr "%>%"
#' @export
#' @examples
#' \donttest{
#' sample_flines <- sf::read_sf(system.file("extdata",
#' "petapsco_flowlines.gpkg",
#' package = "nhdplusTools"))
Expand All @@ -94,6 +95,7 @@ matcher <- function(coords, points, search_radius, max_matches = 1) {
#' search_radius = 0.2,
#' max_matches = 10)
#'
#' }

get_flowline_index <- function(flines, points,
search_radius = 0.1,
Expand Down
2 changes: 2 additions & 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-11-05T01:06Z
last_built: 2020-11-13T16:32Z
urls:
reference: https://usgs-r.github.io/nhdplusTools//reference
article: https://usgs-r.github.io/nhdplusTools//articles
Expand Down
6 changes: 4 additions & 2 deletions docs/reference/get_flowline_index.html

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

2 changes: 2 additions & 0 deletions man/get_flowline_index.Rd

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

1 change: 1 addition & 0 deletions tests/testthat/test_plot_nhdplus.R
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ test_that("bbox", {
})

test_that("comids", {
testthat::skip_on_cran()
fline <- sf::read_sf(sample_data, "NHDFlowline_Network")
comids <- nhdplusTools::get_UT(fline, 13293970)
d <- nhdplusTools:::get_plot_data(comids)
Expand Down

0 comments on commit 20f0019

Please sign in to comment.