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

Commit

Permalink
s2 needed for coord_within_eg
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jun 10, 2021
1 parent 769c0db commit 6944d58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/R-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
netcdf-bin
- name: Install dependencies
run: Rscript -e "install.packages('remotes')" -e "remotes::install_deps(dependencies = TRUE)" -e "remotes::install_cran(c('rcmdcheck', 'geoaxe', 'rgbif', 'rworldmap', 'maps', 'covr', 'raster', 'sf'))"
run: Rscript -e "install.packages('remotes')" -e "remotes::install_deps(dependencies = TRUE)" -e "remotes::install_cran(c('rcmdcheck', 'geoaxe', 'rgbif', 'rworldmap', 'maps', 'covr', 'raster', 'sf', 's2'))"

- name: Check
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')"
Expand Down
1 change: 1 addition & 0 deletions R/coord-funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
#' if (
#' interactive() &&
#' requireNamespace("sf", quietly=TRUE) &&
#' requireNamespace("s2", quietly=TRUE) &&
#' requireNamespace("rworldmap", quietly=TRUE)
#' ) {
#' NROW(res)
Expand Down
1 change: 1 addition & 0 deletions man/coords.Rd

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

1 change: 1 addition & 0 deletions tests/testthat/test-coords.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ test_that("coord_unlikely works", {

test_that("coord_within works", {
skip_if_not_installed("sf")
skip_if_not_installed("s2")
skip_if_not_installed("rworldmap")

zz <- sample_data_4
Expand Down

0 comments on commit 6944d58

Please sign in to comment.