Skip to content

Commit

Permalink
sf/stars coercion: wrap examples in \donttest (lengthy) *
Browse files Browse the repository at this point in the history
Relates to CRAN review: #167 (comment).
  • Loading branch information
florisvdh committed Aug 16, 2023
1 parent d06f38a commit 5f1a9fc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/compat-sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#' @returns An `sf` object.
#'
#' @examplesIf has_qgis() && requireNamespace("sf", quietly = TRUE)
#' \donttest{
#' # not running below examples in R CMD check to save time
#' result <- qgis_run_algorithm(
#' "native:buffer",
#' INPUT = system.file("longlake/longlake_depth.gpkg", package = "qgisprocess"),
Expand All @@ -28,6 +30,7 @@
#' # if you need more control, extract the needed output element first:
#' output_vector <- qgis_extract_output(result, "OUTPUT")
#' sf::st_as_sf(output_vector)
#' }
#'
#' @name st_as_sf

Expand Down
3 changes: 3 additions & 0 deletions R/compat-stars.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#' @returns A `stars` or a `stars_proxy` object.
#'
#' @examplesIf has_qgis() && requireNamespace("stars", quietly = TRUE)
#' \donttest{
#' # not running below examples in R CMD check to save time
#' result <- qgis_run_algorithm(
#' "native:slope",
#' INPUT = system.file("longlake/longlake_depth.tif", package = "qgisprocess")
Expand All @@ -28,6 +30,7 @@
#' # if you need more control, extract the needed output element first:
#' output_raster <- qgis_extract_output(result, "OUTPUT")
#' stars::st_as_stars(output_raster)
#' }
#'
#' @name st_as_stars

Expand Down
3 changes: 3 additions & 0 deletions man/st_as_sf.Rd

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

3 changes: 3 additions & 0 deletions man/st_as_stars.Rd

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

0 comments on commit 5f1a9fc

Please sign in to comment.