From c5336d1eb70300d09da9ca7eae81cd66edd4c4c5 Mon Sep 17 00:00:00 2001 From: mhesselbarth Date: Thu, 29 Feb 2024 15:48:22 +0100 Subject: [PATCH] :bug: Fix bug in spatialize_lsm --- DESCRIPTION | 4 ++-- NEWS.md | 4 ++++ R/spatialize_lsm.R | 1 + cran-comments.md | 3 +++ man/landscapemetrics.Rd | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d5e823661..982bd0758 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 = "mhk.hesselbarth@gmail.com", @@ -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 diff --git a/NEWS.md b/NEWS.md index 713c9290c..42c8c2c67 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +calculate_lsm +* Bugfixes + * Bug in `spatialze_lsm()` with `directions` argument + # landscapemetrics 2.1.1 * Improvements * Simplify roxygen2 docs diff --git a/R/spatialize_lsm.R b/R/spatialize_lsm.R index f9f3d9a7e..64abedc83 100644 --- a/R/spatialize_lsm.R +++ b/R/spatialize_lsm.R @@ -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, ...) diff --git a/cran-comments.md b/cran-comments.md index d850e814a..d8751518e 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,3 +1,6 @@ +# landscapemetrics 2.1.2 +Minor bugfixes + # landscapemetrics 2.1.1 Minor bugfix and improvements diff --git a/man/landscapemetrics.Rd b/man/landscapemetrics.Rd index 9f98b7a73..221c993ea 100644 --- a/man/landscapemetrics.Rd +++ b/man/landscapemetrics.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/landscapemetrics-package.R \docType{package} \name{landscapemetrics} -\alias{landscapemetrics} \alias{landscapemetrics-package} +\alias{landscapemetrics} \title{landscapemetrics} \description{ Calculates landscape metrics for categorical landscape patterns in a tidy workflow.