Skip to content

Commit

Permalink
add some donttest to speed up the cran build
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Apr 8, 2022
1 parent 94b7641 commit 18eca2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/get_nldi.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 18eca2e

Please sign in to comment.