Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
only run some egs if interactive - to reduce eg run time on cran
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Apr 7, 2020
1 parent a5ac579 commit d082477
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/coord-funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
#' attr(df_unlikely, "coord_unlikely")
#'
#' # Remove points not within correct political borders
#' if (requireNamespace("rgbif", quietly = TRUE)) {
#' if (requireNamespace("rgbif", quietly = TRUE) && interactive()) {
#' library("rgbif")
#' wkt <- 'POLYGON((30.1 10.1,40 40,20 40,10 20,30.1 10.1))'
#' res <- rgbif::occ_data(geometry = wkt, limit=300)$data
Expand Down
2 changes: 1 addition & 1 deletion R/ecoregion.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#' within `eco_region()` and see what variables/columns can be used
#'
#' @examples \dontrun{
#' if (requireNamespace("mapview") && requireNamespace("sf")) {
#' if (requireNamespace("mapview") && requireNamespace("sf") && interactive()) {
#' ## Marine Ecoregions of the World
#' wkt <- 'POLYGON((-119.8 12.2, -105.1 11.5, -106.1 21.6, -119.8 20.9, -119.8 12.2))'
#' res <- rgbif::occ_data(geometry = wkt, limit=300)$data
Expand Down
2 changes: 1 addition & 1 deletion man/coords.Rd

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

2 changes: 1 addition & 1 deletion man/eco_region.Rd

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

0 comments on commit d082477

Please sign in to comment.