CRAN Package Check Results for Package ElevDistr

Last updated on 2025-04-25 06:49:31 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.9 3.34 111.76 115.10 OK
r-devel-linux-x86_64-debian-gcc 1.0.9 2.40 66.72 69.12 OK
r-devel-linux-x86_64-fedora-clang 1.0.9 184.42 OK
r-devel-linux-x86_64-fedora-gcc 1.0.9 187.35 OK
r-devel-windows-x86_64 1.0.9 6.00 177.00 183.00 OK
r-patched-linux-x86_64 1.0.9 3.59 110.88 114.47 OK
r-release-linux-x86_64 1.0.9 3.32 112.10 115.42 OK
r-release-macos-arm64 1.0.9 156.00 OK
r-release-macos-x86_64 1.0.9 386.00 OK
r-release-windows-x86_64 1.0.9 6.00 1742.00 1748.00 ERROR
r-oldrel-macos-arm64 1.0.9 217.00 OK
r-oldrel-macos-x86_64 1.0.9 245.00 OK
r-oldrel-windows-x86_64 1.0.9 7.00 216.00 223.00 OK

Check Details

Version: 1.0.9
Check: tests
Result: ERROR Running 'testthat.R' [27m] 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(ElevDistr) > > test_check("ElevDistr") | | | 0% | |============================================================| 100% | | | 0% | |============================================================| 100% | | | 0% | |============================================================| 100% | | | 0% | |==================== | 33% | |======================================== | 67% | |============================================================| 100% [ FAIL 3 | WARN 180 | SKIP 0 | PASS 153 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-calculate_distance.R:15:3'): output is correct ───────────────── Error in `if (treeline$lat1[i] == treeline$lat2[i]) { lonSeq <- seq(from = treeline$lon1[i], to = treeline$lon2[i], by = (abs(treeline$lon2[i] - treeline$lon1[i]))/treelineSampling) lonSeq <- lonSeq[-(treelineSampling + 1)] lat <- treeline$lat1[i] latSeq <- rep(lat, treelineSampling) } else if (treeline$lon1[i] == treeline$lon2[i]) { latSeq <- seq(from = treeline$lat1[i], to = treeline$lat2[i], by = (abs(treeline$lat2[i] - treeline$lat1[i]))/treelineSampling) latSeq <- latSeq[-(treelineSampling + 1)] lon <- treeline$lon1[i] lonSeq <- rep(lon, treelineSampling) }`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-calculate_distance.R:15:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─ElevDistr::calculate_distance(...) ── Error ('test-calculate_distance.R:34:3'): check input type ────────────────── Error in `if (treeline$lat1[i] == treeline$lat2[i]) { lonSeq <- seq(from = treeline$lon1[i], to = treeline$lon2[i], by = (abs(treeline$lon2[i] - treeline$lon1[i]))/treelineSampling) lonSeq <- lonSeq[-(treelineSampling + 1)] lat <- treeline$lat1[i] latSeq <- rep(lat, treelineSampling) } else if (treeline$lon1[i] == treeline$lon2[i]) { latSeq <- seq(from = treeline$lat1[i], to = treeline$lat2[i], by = (abs(treeline$lat2[i] - treeline$lat1[i]))/treelineSampling) latSeq <- latSeq[-(treelineSampling + 1)] lon <- treeline$lon1[i] lonSeq <- rep(lon, treelineSampling) }`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-calculate_distance.R:34:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─ElevDistr::calculate_distance(...) ── Failure ('test-distance_to_treeline.R:11:3'): output is correct ───────────── distance_to_treeline(...) (`actual`) not equal to -1491 (`expected`). `actual`: -1480.0 `expected`: -1491.0 [ FAIL 3 | WARN 180 | SKIP 0 | PASS 153 ] Error: Test failures Execution halted Flavor: r-release-windows-x86_64