Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Sep 19, 2023
1 parent e40d092 commit e2d458c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/add_pfafstetter.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ required_atts_pfafsetter <- c(id, toid, total_da_sqkm, topo_sort, levelpath)
#' pfaf <- add_pfafstetter(x, max_level = 4)
#'
#' hr_catchment <- dplyr::left_join(hr_data$NHDPlusCatchment,
#' st_drop_geometry(pfaf), by = c("FEATUREID" = "id"))
#' sf::st_drop_geometry(pfaf), by = c("FEATUREID" = "id"))
#'
#' colors <- data.frame(pf_level_4 = unique(hr_catchment$pf_level_4),
#' color = sample(terrain.colors(length(unique(hr_catchment$pf_level_4)))))
Expand Down
2 changes: 1 addition & 1 deletion R/navigate_network_dfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' @description given a starting node, return all reachable paths. Once visited,
#' a node is marked as visited and will not take part in a future path.
#' @param x data.frame containing hydroloom compatible network or list
#' as returned by \link{make_index_ids} (for down) or \link{make_from_ids}
#' as returned by \link{make_index_ids} (for down) or \link{make_fromids}
#' (for up). The list formats avoids recreating the index ids for every call
#' to navigate network dfs in the case that it needs to be called many times.
#' @param starts vector with ids from x to start at.
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ rename_geometry <- function(g, name){
#' @examples
#'
#' (g <- sf::st_sf(a=3, geo = sf::st_sfc(sf::st_point(1:2))))
#' st_drop_geometry(g)
#' sf::st_drop_geometry(g)
#'
drop_geometry <- function(x) {
warning("no longer needed -- will be dropped")
Expand Down
2 changes: 1 addition & 1 deletion man/add_pfafstetter.Rd

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

2 changes: 1 addition & 1 deletion man/drop_geometry.Rd

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

2 changes: 1 addition & 1 deletion man/navigate_network_dfs.Rd

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

0 comments on commit e2d458c

Please sign in to comment.