Skip to content

Commit

Permalink
🐛 Fix bug in spatialize_lsm
Browse files Browse the repository at this point in the history
  • Loading branch information
mhesselbarth committed Feb 29, 2024
1 parent 943a661 commit c5336d1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: landscapemetrics
Title: Landscape Metrics for Categorical Map Patterns
Version: 2.1.1
Version: 2.1.2
Authors@R: c(person("Maximilian H.K.", "Hesselbarth",
role = c("aut", "cre"),
email = "[email protected]",
Expand Down Expand Up @@ -76,5 +76,5 @@ Encoding: UTF-8
LazyData: true
Config/testthat/edition: 3
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
VignetteBuilder: knitr
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
calculate_lsm
* Bugfixes
* Bug in `spatialze_lsm()` with `directions` argument

# landscapemetrics 2.1.1
* Improvements
* Simplify roxygen2 docs
Expand Down
1 change: 1 addition & 0 deletions R/spatialize_lsm.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ spatialize_lsm_internal <- function(landscape, level, metric, name, type, what,
# get metric value
fill_value <- calculate_lsm(landscape,
what = metrics[[x]],
directions = directions,
progress = FALSE,
...)

Expand Down
3 changes: 3 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# landscapemetrics 2.1.2
Minor bugfixes

# landscapemetrics 2.1.1
Minor bugfix and improvements

Expand Down
2 changes: 1 addition & 1 deletion man/landscapemetrics.Rd

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

0 comments on commit c5336d1

Please sign in to comment.