Last updated on 2025-11-15 02:53:31 CET.
| Package | ERROR | OK |
|---|---|---|
| passport | 3 | 10 |
Current CRAN status: ERROR: 3, OK: 10
Version: 0.3.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(passport)
>
> test_check("passport")
Saving _problems/test_parse_country-49.R
[ FAIL 1 | WARN 4 | SKIP 1 | PASS 37 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test_parse_country.R:91:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_parse_country.R:43:5'): parsing country names with simulated geocoding APIs works ──
`with_mock(...)` threw an error with unexpected message.
Expected match: "jsonlite"
Actual message: "`with_mock()` was deprecated in testthat 3.2.0 and is now defunct.\nℹ Please use `with_mocked_bindings()` instead."
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_parse_country.R:43:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
[ FAIL 1 | WARN 4 | SKIP 1 | PASS 37 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.3.0
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(passport)
>
> test_check("passport")
Saving _problems/test_parse_country-49.R
[ FAIL 1 | WARN 4 | SKIP 1 | PASS 37 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test_parse_country.R:91:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_parse_country.R:43:5'): parsing country names with simulated geocoding APIs works ──
`with_mock(...)` threw an error with unexpected message.
Expected match: "jsonlite"
Actual message: "`with_mock()` was deprecated in testthat 3.2.0 and is now defunct.\nℹ Please use `with_mocked_bindings()` instead."
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_parse_country.R:43:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
[ FAIL 1 | WARN 4 | SKIP 1 | PASS 37 ]
Error:
! Test failures.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc