LandComp
Analysing Landscape Composition and Structure at Multiple Scales
Description
Changes of landscape diversity and structure can be detected soon if relying on landscape class combinations and analysing patterns at multiple scales. 'LandComp' provides such an opportunity, based on Juhász-Nagy's functions (Juhász-Nagy P, Podani J 1983 <doi:10.1007/BF00129432>). Functions can handle multilayered data. Requirements of the input: binary data contained by a regular square or hexagonal grid, and the grid should have projected coordinates.
Downloads
600
Last 30 days
6625th
1.8K
Last 90 days
6.6K
Last year
Trend: +2.2% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | ERROR |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | ERROR |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | ERROR |
Check details (6 non-OK)
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building 'LandComp.Rmd' using rmarkdown
Quitting from LandComp.Rmd:66-68 [square_example2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `stop_if_not()`:
! 'list' object cannot be coerced to type 'double'
---
Backtrace:
▆
1. ├─LandComp::LandComp(...)
2. │ └─future::plan("future::multisession")
3. │ └─future (local) plan_set(...)
4. │ └─future:::plan_init(stack[[1]], debug = debug)
5. │ └─future:::makeFutureBackend(evaluator, debug = debug)
6. │ └─base::do.call(factory, args = args, envir = envir)
7. └─future (local) `<fn>`(...)
8. └─future::ClusterFutureBackend(...)
9. └─future::MultiprocessFutureBackend(...)
10. └─future::FutureBackend(...)
11. └─future:::stop_if_not(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'LandComp.Rmd' failed with diagnostics:
'list' object cannot be coerced to type 'double'
--- failed re-building 'LandComp.Rmd'
SUMMARY: processing the following file failed:
'LandComp.Rmd'
Error: Vignette re-building failed.
Execution halted
tests
Running 'testthat.R' [24s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(LandComp)
>
> test_check("LandComp")
Saving _problems/test-LandComp-17.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-LandComp.R:17:13'): inappropriate x ────────────────────────────
Error in `stop_if_not(length(maxSizeOfObjects) == 1L, is.numeric(maxSizeOfObjects), !is.na(maxSizeOfObjects), maxSizeOfObjects >= 0)`: 'list' object cannot be coerced to type 'double'
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test-LandComp.R:17:13
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─LandComp::LandComp(x = hexagonal_data_logi, aggregation_steps = 0)
7. │ └─future::plan("future::multisession")
8. │ └─future (local) plan_set(...)
9. │ └─future:::plan_init(stack[[1]], debug = debug)
10. │ └─future:::makeFutureBackend(evaluator, debug = debug)
11. │ └─base::do.call(factory, args = args, envir = envir)
12. └─future (local) `<fn>`(...)
13. └─future::ClusterFutureBackend(...)
14. └─future::MultiprocessFutureBackend(...)
15. └─future::FutureBackend(...)
16. └─future:::stop_if_not(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ]
Error:
! Test failures.
Execution halted
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building 'LandComp.Rmd' using rmarkdown
Quitting from LandComp.Rmd:66-68 [square_example2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `stop_if_not()`:
! 'list' object cannot be coerced to type 'double'
---
Backtrace:
▆
1. ├─LandComp::LandComp(...)
2. │ └─future::plan("future::multisession")
3. │ └─future (local) plan_set(...)
4. │ └─future:::plan_init(stack[[1]], debug = debug)
5. │ └─future:::makeFutureBackend(evaluator, debug = debug)
6. │ └─base::do.call(factory, args = args, envir = envir)
7. └─future (local) `<fn>`(...)
8. └─future::ClusterFutureBackend(...)
9. └─future::MultiprocessFutureBackend(...)
10. └─future::FutureBackend(...)
11. └─future:::stop_if_not(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'LandComp.Rmd' failed with diagnostics:
'list' object cannot be coerced to type 'double'
--- failed re-building 'LandComp.Rmd'
SUMMARY: processing the following file failed:
'LandComp.Rmd'
Error: Vignette re-building failed.
Execution halted
tests
Running 'testthat.R' [34s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(LandComp)
>
> test_check("LandComp")
Saving _problems/test-LandComp-17.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-LandComp.R:17:13'): inappropriate x ────────────────────────────
Error in `stop_if_not(length(maxSizeOfObjects) == 1L, is.numeric(maxSizeOfObjects), !is.na(maxSizeOfObjects), maxSizeOfObjects >= 0)`: 'list' object cannot be coerced to type 'double'
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test-LandComp.R:17:13
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─LandComp::LandComp(x = hexagonal_data_logi, aggregation_steps = 0)
7. │ └─future::plan("future::multisession")
8. │ └─future (local) plan_set(...)
9. │ └─future:::plan_init(stack[[1]], debug = debug)
10. │ └─future:::makeFutureBackend(evaluator, debug = debug)
11. │ └─base::do.call(factory, args = args, envir = envir)
12. └─future (local) `<fn>`(...)
13. └─future::ClusterFutureBackend(...)
14. └─future::MultiprocessFutureBackend(...)
15. └─future::FutureBackend(...)
16. └─future:::stop_if_not(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ]
Error:
! Test failures.
Execution halted
re-building of vignette outputs
Error(s) in re-building vignettes:
--- re-building 'LandComp.Rmd' using rmarkdown
Quitting from LandComp.Rmd:66-68 [square_example2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `stop_if_not()`:
! 'list' object cannot be coerced to type 'double'
---
Backtrace:
▆
1. ├─LandComp::LandComp(...)
2. │ └─future::plan("future::multisession")
3. │ └─future (local) plan_set(...)
4. │ └─future:::plan_init(stack[[1]], debug = debug)
5. │ └─future:::makeFutureBackend(evaluator, debug = debug)
6. │ └─base::do.call(factory, args = args, envir = envir)
7. └─future (local) `<fn>`(...)
8. └─future::ClusterFutureBackend(...)
9. └─future::MultiprocessFutureBackend(...)
10. └─future::FutureBackend(...)
11. └─future:::stop_if_not(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'LandComp.Rmd' failed with diagnostics:
'list' object cannot be coerced to type 'double'
--- failed re-building 'LandComp.Rmd'
SUMMARY: processing the following file failed:
'LandComp.Rmd'
Error: Vignette re-building failed.
Execution halted
tests
Running 'testthat.R' [23s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(LandComp)
>
> test_check("LandComp")
Saving _problems/test-LandComp-17.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-LandComp.R:17:13'): inappropriate x ────────────────────────────
Error in `stop_if_not(length(maxSizeOfObjects) == 1L, is.numeric(maxSizeOfObjects), !is.na(maxSizeOfObjects), maxSizeOfObjects >= 0)`: 'list' object cannot be coerced to type 'double'
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test-LandComp.R:17:13
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─LandComp::LandComp(x = hexagonal_data_logi, aggregation_steps = 0)
7. │ └─future::plan("future::multisession")
8. │ └─future (local) plan_set(...)
9. │ └─future:::plan_init(stack[[1]], debug = debug)
10. │ └─future:::makeFutureBackend(evaluator, debug = debug)
11. │ └─base::do.call(factory, args = args, envir = envir)
12. └─future (local) `<fn>`(...)
13. └─future::ClusterFutureBackend(...)
14. └─future::MultiprocessFutureBackend(...)
15. └─future::FutureBackend(...)
16. └─future:::stop_if_not(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ]
Error:
! Test failures.
Execution halted
Check History
ERROR 11 OK · 0 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE Mar 10, 2026
tests
Running 'testthat.R' [23s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test ...[truncated]... sterFutureBackend(...) 14. └─future::MultiprocessFutureBackend(...) 15. └─future::FutureBackend(...) 16. └─future:::stop_if_not(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ] Error: ! Test failures. Execution halted
tests
Running 'testthat.R' [24s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test ...[truncated]... sterFutureBackend(...) 14. └─future::MultiprocessFutureBackend(...) 15. └─future::FutureBackend(...) 16. └─future:::stop_if_not(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ] Error: ! Test failures. Execution halted
tests
Running 'testthat.R' [35s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test ...[truncated]... sterFutureBackend(...) 14. └─future::MultiprocessFutureBackend(...) 15. └─future::FutureBackend(...) 16. └─future:::stop_if_not(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ] Error: ! Test failures. Execution halted