diff --git a/R/tags_filter.R b/R/tags_filter.R index 2b9fc8e..38b6deb 100644 --- a/R/tags_filter.R +++ b/R/tags_filter.R @@ -95,7 +95,7 @@ #' #' @return The normalized path to the output file. #' -#' @examples +#' @examplesIf identical(tolower(Sys.getenv("NOT_CRAN")), "true") #' pbf_path <- system.file("extdata/cur.osm.pbf", package = "rosmium") #' #' # get all amenity nodes diff --git a/man/tags_filter.Rd b/man/tags_filter.Rd index 7fd36fe..128261c 100644 --- a/man/tags_filter.Rd +++ b/man/tags_filter.Rd @@ -132,6 +132,7 @@ that have an additional "type=multipolygon" or "type=boundary" tag. } \examples{ +\dontshow{if (identical(tolower(Sys.getenv("NOT_CRAN")), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} pbf_path <- system.file("extdata/cur.osm.pbf", package = "rosmium") # get all amenity nodes @@ -160,5 +161,5 @@ ways <- sf::st_read(output, layer = "lines", quiet = TRUE) head(ways$highway) relations <- sf::st_read(output, layer = "other_relations", quiet = TRUE) head(relations$other_tags) - +\dontshow{\}) # examplesIf} }