Skip to content

Commit

Permalink
Merge pull request #172 from birdflow-science/test-crs
Browse files Browse the repository at this point in the history
add preprocess_species test with crs
  • Loading branch information
ethanplunkett committed Feb 23, 2024
2 parents 2391f6b + c40bdd5 commit a63e340
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: BirdFlowR
Title: Predict and Visualize Bird Movement
Version: 0.1.0.9049
Version: 0.1.0.9050
Authors@R:
c(person("Ethan", "Plunkett", email = "plunkett@umass.edu", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-4405-2251")),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# BirdFlowR 0.1.0.9050
2023-02-22

* Add test for `preprocess_species()` with a non-default CRS.

# BirdFlowR 0.1.0.9049
2023-01-11

Expand Down
15 changes: 15 additions & 0 deletions tests/testthat/test-preprocess_species.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,18 @@ test_that("preprocess_species() works with clip", {
res(b)
})
})


test_that("preprocess_species() works with crs arg", {
skip_on_cran()
skip_on_ci()

skip_if_unsupported_ebirdst_version()

# Create and commit to cleaning up a temporary dir
dir <- local_test_dir("preprocess_crs")

expect_no_error(
bf <- preprocess_species(species = "example_data", res = 400, hdf5 = FALSE, crs = birdflow_crs)
)
})

0 comments on commit a63e340

Please sign in to comment.