Skip to content

Commit 1c85861

Browse files
committed
don't test any long-running examples
1 parent 1d949a0 commit 1c85861

8 files changed

+16
-0
lines changed

R/geom-polypath.R

+2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@
2626
#' @export
2727
#'
2828
#' @examples
29+
#' \donttest{
2930
#' library(ggplot2)
3031
#' load_longlake_data(which = "longlake_waterdf")
3132
#' ggplot(df_spatial(longlake_waterdf), aes(x, y, group = piece_id)) +
3233
#' geom_polypath()
34+
#' }
3335
#'
3436
geom_polypath <- function (mapping = NULL, data = NULL, stat = "identity", position = "identity",
3537
na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, rule = "winding",

R/layer-spatial-bbox.R

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#' @export
1414
#'
1515
#' @examples
16+
#' \donttest{
1617
#' library(ggplot2)
1718
#' load_longlake_data(which = c("longlake_waterdf", "longlake_depthdf"))
1819
#' ggplot() +
@@ -24,6 +25,7 @@
2425
#' ggplot() +
2526
#' shadow_spatial(longlake_waterdf) +
2627
#' layer_spatial(longlake_depthdf)
28+
#' }
2729
#'
2830
layer_spatial.bbox <- function(data, mapping = aes(), ..., detail = 30) {
2931
layer_spatial(sf_bbox_to_sf(data, detail = detail), mapping = mapping, ...)

R/layer-spatial-raster.R

+2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
#' @export
1818
#'
1919
#' @examples
20+
#' \donttest{
2021
#' library(ggplot2)
2122
#' load_longlake_data(which = c("longlake_osm", "longlake_depth_raster"))
2223
#' ggplot() + layer_spatial(longlake_osm)
2324
#' ggplot() + layer_spatial(longlake_depth_raster) + scale_fill_continuous(na.value = NA)
25+
#' }
2426
#'
2527
layer_spatial.Raster <- function(data, mapping = NULL, interpolate = NULL, is_annotation = FALSE,
2628
lazy = FALSE, dpi = 150, ...) {

R/layer-spatial.R

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#' @importFrom ggplot2 aes
1717
#'
1818
#' @examples
19+
#' \donttest{
1920
#' library(ggplot2)
2021
#' load_longlake_data(
2122
#' which = c(
@@ -43,6 +44,7 @@
4344
#'
4445
#' # spatial-aware automagic north arrow
4546
#' annotation_north_arrow(location = "br", which_north = "true")
47+
#' }
4648
#'
4749
layer_spatial <- function(data, mapping, ...) {
4850
UseMethod("layer_spatial")

man/geom_polypath.Rd

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/layer_spatial.Raster.Rd

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/layer_spatial.Rd

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/layer_spatial.bbox.Rd

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)