Skip to content

Commit

Permalink
cran test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Jan 10, 2020
1 parent 03242d2 commit 8806914
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ code.json
.Renviron
tests/testthat/data/03
rosm.cache
pkgdown
3 changes: 2 additions & 1 deletion R/get_codes.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ get_streamorder <- function(x) {
#' @importFrom sf st_drop_geometry
#' @importFrom methods is
#' @examples
#' \donttest{
#' library(dplyr)
#' source(system.file("extdata/nhdplushr_data.R", package = "nhdplusTools"))
#' hr_flowline <- align_nhdplus_names(hr_data$NHDFlowline)
Expand Down Expand Up @@ -119,7 +120,7 @@ get_streamorder <- function(x) {
#' fl <- left_join(fl, pfaf, by = "ID")
#'
#' plot(fl["pf_level_2"], lwd = 2)
#'
#' }
get_pfaf <- function(x, max_level = 2, status = FALSE) {
if(is(x, "sf")) x <- st_drop_geometry(x)
check_names(x, "get_pfaf")
Expand Down
3 changes: 2 additions & 1 deletion R/plot_nhdplus.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#'
#' @export
#' @examples
#'
#' \donttest{
#' plot_nhdplus("05428500")
#'
#' plot_nhdplus("05428500", streamorder = 2)
Expand Down Expand Up @@ -95,6 +95,7 @@
#' plot_config = list(flowline = list(lwd = 0.5)))
#' plot_nhdplus(comids, nhdplus_data = sample_data, streamorder = 3, add = TRUE,
#' plot_config = list(flowline = list(col = "darkblue")))
#' }

plot_nhdplus <- function(outlets = NULL, bbox = NULL, streamorder = NULL,
nhdplus_data = NULL, gpkg = NULL, plot_config = NULL,
Expand Down
3 changes: 2 additions & 1 deletion man/get_pfaf.Rd

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

3 changes: 2 additions & 1 deletion man/plot_nhdplus.Rd

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

0 comments on commit 8806914

Please sign in to comment.