Running ‘testthat.R’ [75s/124s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(move2)
  > 
  > 
  > test_check("move2")
  Linking to GEOS 3.14.1, GDAL 3.12.0, PROJ 9.7.0; sf_use_s2() is TRUE
  Saving _problems/test-movebank_api-10.R
  Saving _problems/test-movebank_api-20.R
  Saving _problems/test-movebank_api-52.R
  Saving _problems/test-movebank_api-152.R
  [ FAIL 4 | WARN 0 | SKIP 17 | PASS 749 ]
  
  ══ Skipped tests (17) ══════════════════════════════════════════════════════════
  • On CRAN (15): 'test-calculate_properties.R:25:3',
    'test-movebank_api.R:156:3', 'test-movebank_api.R:186:3',
    'test-movebank_api.R:208:3', 'test-movebank_api.R:241:3',
    'test-movebank_api.R:265:3', 'test-movebank_api.R:298:3',
    'test-movebank_api.R:306:3', 'test-movebank_api.R:316:3',
    'test-movebank_api.R:334:3', 'test-movebank_api.R:360:3',
    'test-movebank_get_vocabulary.R:2:3', 'test-movebank_get_vocabulary.R:27:3',
    'test-movebank_speed.R:2:3', 'test-movebank_speed.R:44:3'
  • Temporarily disabled (1): 'test-mt_read_speed.R:2:3'
  • empty test (1): 'test-movebank_api.R:197:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-movebank_api.R:7:3'): User on save needs to be specified ───────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `movebank_store_credentials()`: The package "keyring" is required to store credentials in the keyring.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(movebank_store_credentials(), "Please call the `movebank_store_credentials..` function with the `username` argument specified") at test-movebank_api.R:7: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. └─move2::movebank_store_credentials()
   8.   └─rlang::check_installed(c("keyring"), "to store credentials in the keyring.")
  ── Error ('test-movebank_api.R:17:3'): User pwd combination works ──────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `movebank_store_credentials("move2_user", "sdf")`: The package "keyring" is required to store credentials in the keyring.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-movebank_api.R:17: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. └─move2::movebank_store_credentials("move2_user", "sdf")
   8.   └─rlang::check_installed(c("keyring"), "to store credentials in the keyring.")
  ── Error ('test-movebank_api.R:52:5'): Remove user ─────────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `movebank_remove_credentials()`: The package "keyring" is required for `movebank_remove_credentials()`.
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-movebank_api.R:51:3
    2. │ └─base::force(code)
    3. ├─testthat::expect_warning(movebank_remove_credentials(), "There are no keys to remove from the keyring.") at test-movebank_api.R:52:5
    4. │ └─testthat:::expect_condition_matching_(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─move2::movebank_remove_credentials()
   10.   └─rlang::check_installed("keyring", format_message("for {.fun movebank_remove_credentials}."))
  ── Error ('test-movebank_api.R:152:5'): no login ───────────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `movebank_handle()`: The package "keyring" is required to create a movebank handle from the keyring.
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-movebank_api.R:151:3
    2. │ └─base::force(code)
    3. ├─testthat::expect_error(movebank_handle(), "No login for movebank found") at test-movebank_api.R:152:5
    4. │ └─testthat:::expect_condition_matching_(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─move2::movebank_handle()
   10.   └─rlang::check_installed(c("curl", "keyring"), "to create a movebank handle from the keyring.")
  
  [ FAIL 4 | WARN 0 | SKIP 17 | PASS 749 ]
  Error:
  ! Test failures.
  Execution halted