Skip to content

Commit

Permalink
fix terra::compareGeom()
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyhanson authored Apr 11, 2023
1 parent 2ce14b6 commit f6854b8
Show file tree
Hide file tree
Showing 71 changed files with 204 additions and 194 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: aoh
Type: Package
Version: 0.0.2.4
Version: 0.0.2.5
Title: Create Area of Habitat Data
Description: Create Area of Habitat data to characterize species distributions.
Data are produced following procedures outlined by Brooks et al. (2019)
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# aoh 0.0.2.5

- Fix compatibility with updates to `terra::compareGeom()`.

# aoh 0.0.2.4

- Update data cleaning procedures for `create_spp_info_data()` so that a
Expand Down
2 changes: 1 addition & 1 deletion R/create_spp_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ create_spp_data <- function(x,
assertthat::assert_that(
terra::compareGeom(
elevation_data, habitat_data,
res = TRUE, stopiffalse = FALSE
res = TRUE, stopOnError = FALSE
),
msg = paste(
"arguments to \"elevation_data\" and \"habitat_data\" don't have the",
Expand Down
2 changes: 1 addition & 1 deletion R/simulate_spp_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ simulate_spp_data <- function(n,
## verify rasters match
assertthat::assert_that(
terra::compareGeom(
elevation_data, habitat_data, res = TRUE, stopiffalse = FALSE
elevation_data, habitat_data, res = TRUE, stopOnError = FALSE
),
msg = paste(
"arguments to \"elevation_data\" and \"habitat_data\" don't have the",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ produce Area of Habitat data.
relevant data using:

Hanson JO (2023) aoh: Create Area of Habitat Data. R package version
0.0.2.4. Available at https://github.com/prioritizr/aoh.
0.0.2.5. Available at https://github.com/prioritizr/aoh.

IUCN [insert year] IUCN Red List of Threatened Species. Version
[insert version]. Available at www.iucnredlist.org.
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

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

28 changes: 14 additions & 14 deletions docs/articles/aoh.html

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

Binary file modified docs/articles/aoh_files/figure-html/unnamed-chunk-10-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f6854b8

Please sign in to comment.