Skip to content

Commit c5336d1

Browse files
committed
🐛 Fix bug in spatialize_lsm
1 parent 943a661 commit c5336d1

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: landscapemetrics
33
Title: Landscape Metrics for Categorical Map Patterns
4-
Version: 2.1.1
4+
Version: 2.1.2
55
Authors@R: c(person("Maximilian H.K.", "Hesselbarth",
66
role = c("aut", "cre"),
77
email = "[email protected]",
@@ -76,5 +76,5 @@ Encoding: UTF-8
7676
LazyData: true
7777
Config/testthat/edition: 3
7878
Roxygen: list(markdown = TRUE)
79-
RoxygenNote: 7.2.3
79+
RoxygenNote: 7.3.1
8080
VignetteBuilder: knitr

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
calculate_lsm
2+
* Bugfixes
3+
* Bug in `spatialze_lsm()` with `directions` argument
4+
15
# landscapemetrics 2.1.1
26
* Improvements
37
* Simplify roxygen2 docs

R/spatialize_lsm.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ spatialize_lsm_internal <- function(landscape, level, metric, name, type, what,
127127
# get metric value
128128
fill_value <- calculate_lsm(landscape,
129129
what = metrics[[x]],
130+
directions = directions,
130131
progress = FALSE,
131132
...)
132133

cran-comments.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# landscapemetrics 2.1.2
2+
Minor bugfixes
3+
14
# landscapemetrics 2.1.1
25
Minor bugfix and improvements
36

man/landscapemetrics.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)