From 18eca2eed666f36f1234995a1596e7972a17fa21 Mon Sep 17 00:00:00 2001 From: David Blodgett Date: Fri, 8 Apr 2022 08:21:26 -0500 Subject: [PATCH] add some donttest to speed up the cran build --- R/get_nldi.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/R/get_nldi.R b/R/get_nldi.R index 50921c2a..f6aacdcc 100644 --- a/R/get_nldi.R +++ b/R/get_nldi.R @@ -210,9 +210,11 @@ get_nldi_feature <- function(nldi_feature) { #' @return data.frame contianing requested characteristics #' @export #' @examples +#' \donttest{ #' chars <- get_nldi_characteristics(list(featureSource = "nwissite", featureID = "USGS-05429700")) #' names(chars) #' head(chars$local, 10) +#' } get_nldi_characteristics <- function(nldi_feature, type="local") { tc <- type_check(type) @@ -241,12 +243,12 @@ get_nldi_characteristics <- function(nldi_feature, type="local") { #' @param location numeric WGS84 lon/lat pair (X, Y) #' @export #' @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) -#' +#' } get_nldi_index <- function(location) { tryCatch({