Last updated on 2025-12-25 04:51:16 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| myClim | 2 | 3 | 8 |
Current CRAN status: ERROR: 2, NOTE: 3, OK: 8
Version: 1.5.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [437s/583s]
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(myClim)
>
> test_check("myClim")
Saving _problems/test-calc-137.R
Saving _problems/test-prep-174.R
[ FAIL 2 | WARN 74 | SKIP 0 | PASS 29420 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-calc.R:137:5'): mc_calc_cumsum ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(.x, .f, ..., .progress = .progress)`: i In index: 2.
i With name: A2E32.
Caused by error in `map()`:
i In index: 5.
i With name: snow.
Caused by error:
! Expected `length(.x$values)` to equal `datetime_length`.
Differences:
`actual`: 287
`expected`: 75
Backtrace:
▆
1. ├─global test_agg_data_format(agg_data) at test-calc.R:137:5
2. │ └─purrr::walk(data$localities, test_agg_locality)
3. │ └─purrr::map(.x, .f, ..., .progress = .progress)
4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
5. │ ├─purrr:::with_indexed_errors(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ ├─purrr:::call_with_cleanup(...)
8. │ └─global .f(.x[[i]], ...)
9. │ └─global test_data_length(locality)
10. │ └─purrr::walk(...)
11. │ └─purrr::map(.x, .f, ..., .progress = .progress)
12. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
13. │ ├─purrr:::with_indexed_errors(...)
14. │ │ └─base::withCallingHandlers(...)
15. │ ├─purrr:::call_with_cleanup(...)
16. │ └─.f(.x[[i]], ...)
17. │ └─testthat::expect_equal(length(.x$values), datetime_length)
18. │ └─testthat:::expect_waldo_equal_(msg, act, exp, info, ..., tolerance = tolerance)
19. │ └─testthat::fail(msg, info = info, trace_env = trace_env)
20. │ └─testthat::expectation("failure", message, srcref = srcref, trace = trace)
21. │ └─testthat::exp_signal(exp)
22. │ ├─base::withRestarts(...)
23. │ │ └─base (local) withRestartList(expr, restarts)
24. │ │ ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
25. │ │ │ └─base (local) doWithOneRestart(return(expr), restart)
26. │ │ └─base (local) withRestartList(expr, restarts[-nr])
27. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
28. │ │ └─base (local) doWithOneRestart(return(expr), restart)
29. │ └─base::stop(exp)
30. ├─purrr (local) `<fn>`(`<expcttn_>`)
31. │ └─cli::cli_abort(...)
32. │ └─rlang::abort(...)
33. │ └─rlang:::signal_abort(cnd, .file)
34. │ └─base::signalCondition(cnd)
35. └─purrr (local) `<fn>`(`<prrr_rr_>`)
36. └─cli::cli_abort(...)
37. └─rlang::abort(...)
── Error ('test-prep.R:174:5'): mc_prep_crop ───────────────────────────────────
<tibble_error_incompatible_size/tibble_error/rlang_error/error/condition>
Error in `recycle_columns(x, .rows, lengths)`: Tibble columns must have compatible sizes.
* Size 75: Columns `datetime`, `TMS_T1`, `TMS_T2`, `TMS_T3`, and `TMS_moist`.
* Size 287: Column `snow`.
i Only values of size one are recycled.
Backtrace:
▆
1. └─myClim::mc_prep_crop(...) at test-prep.R:174:5
2. ├─dplyr::group_map(all_table, agg_locality_function)
3. └─dplyr:::group_map.data.frame(all_table, agg_locality_function)
4. └─dplyr:::map2(chunks, group_keys, .f, ...)
5. └─base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE)
6. └─myClim (local) `<fn>`(dots[[1L]][[2L]], dots[[2L]][[2L]])
7. └─myClim (local) sensors_item_function(locality, start, end)
8. └─myClim:::.prep_crop_data(item, start, end, end_included)
9. └─myClim:::.common_sensor_values_as_tibble(item)
10. ├─tibble::as_tibble(data)
11. └─tibble:::as_tibble.list(data)
12. └─tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x))
13. └─tibble:::recycle_columns(x, .rows, lengths)
14. └─tibble:::abort_incompatible_size(.rows, names(x), lengths, "Requested with `.rows` argument")
15. └─tibble:::tibble_abort(...)
16. └─rlang::abort(x, class, ..., call = call, parent = parent, use_cli_format = TRUE)
[ FAIL 2 | WARN 74 | SKIP 0 | PASS 29420 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.5.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [8m/20m]
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(myClim)
>
> test_check("myClim")
Saving _problems/test-calc-137.R
Saving _problems/test-prep-174.R
[ FAIL 2 | WARN 74 | SKIP 0 | PASS 29420 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-calc.R:137:5'): mc_calc_cumsum ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(.x, .f, ..., .progress = .progress)`: i In index: 2.
i With name: A2E32.
Caused by error in `map()`:
i In index: 5.
i With name: snow.
Caused by error:
! Expected `length(.x$values)` to equal `datetime_length`.
Differences:
`actual`: 287
`expected`: 75
Backtrace:
▆
1. ├─global test_agg_data_format(agg_data) at test-calc.R:137:5
2. │ └─purrr::walk(data$localities, test_agg_locality)
3. │ └─purrr::map(.x, .f, ..., .progress = .progress)
4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
5. │ ├─purrr:::with_indexed_errors(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ ├─purrr:::call_with_cleanup(...)
8. │ └─global .f(.x[[i]], ...)
9. │ └─global test_data_length(locality)
10. │ └─purrr::walk(...)
11. │ └─purrr::map(.x, .f, ..., .progress = .progress)
12. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
13. │ ├─purrr:::with_indexed_errors(...)
14. │ │ └─base::withCallingHandlers(...)
15. │ ├─purrr:::call_with_cleanup(...)
16. │ └─.f(.x[[i]], ...)
17. │ └─testthat::expect_equal(length(.x$values), datetime_length)
18. │ └─testthat:::expect_waldo_equal_(msg, act, exp, info, ..., tolerance = tolerance)
19. │ └─testthat::fail(msg, info = info, trace_env = trace_env)
20. │ └─testthat::expectation("failure", message, srcref = srcref, trace = trace)
21. │ └─testthat::exp_signal(exp)
22. │ ├─base::withRestarts(...)
23. │ │ └─base (local) withRestartList(expr, restarts)
24. │ │ ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
25. │ │ │ └─base (local) doWithOneRestart(return(expr), restart)
26. │ │ └─base (local) withRestartList(expr, restarts[-nr])
27. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
28. │ │ └─base (local) doWithOneRestart(return(expr), restart)
29. │ └─base::stop(exp)
30. ├─purrr (local) `<fn>`(`<expcttn_>`)
31. │ └─cli::cli_abort(...)
32. │ └─rlang::abort(...)
33. │ └─rlang:::signal_abort(cnd, .file)
34. │ └─base::signalCondition(cnd)
35. └─purrr (local) `<fn>`(`<prrr_rr_>`)
36. └─cli::cli_abort(...)
37. └─rlang::abort(...)
── Error ('test-prep.R:174:5'): mc_prep_crop ───────────────────────────────────
<tibble_error_incompatible_size/tibble_error/rlang_error/error/condition>
Error in `recycle_columns(x, .rows, lengths)`: Tibble columns must have compatible sizes.
* Size 75: Columns `datetime`, `TMS_T1`, `TMS_T2`, `TMS_T3`, and `TMS_moist`.
* Size 287: Column `snow`.
i Only values of size one are recycled.
Backtrace:
▆
1. └─myClim::mc_prep_crop(...) at test-prep.R:174:5
2. ├─dplyr::group_map(all_table, agg_locality_function)
3. └─dplyr:::group_map.data.frame(all_table, agg_locality_function)
4. └─dplyr:::map2(chunks, group_keys, .f, ...)
5. └─base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE)
6. └─myClim (local) `<fn>`(dots[[1L]][[2L]], dots[[2L]][[2L]])
7. └─myClim (local) sensors_item_function(locality, start, end)
8. └─myClim:::.prep_crop_data(item, start, end, end_included)
9. └─myClim:::.common_sensor_values_as_tibble(item)
10. ├─tibble::as_tibble(data)
11. └─tibble:::as_tibble.list(data)
12. └─tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x))
13. └─tibble:::recycle_columns(x, .rows, lengths)
14. └─tibble:::abort_incompatible_size(.rows, names(x), lengths, "Requested with `.rows` argument")
15. └─tibble:::tibble_abort(...)
16. └─rlang::abort(x, class, ..., call = call, parent = parent, use_cli_format = TRUE)
[ FAIL 2 | WARN 74 | SKIP 0 | PASS 29420 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 1.5.0
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘rTubeDB’
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Version: 1.5.0
Check: Rd cross-references
Result: NOTE
Package unavailable to check Rd xrefs: ‘rTubeDB’
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64