Running ‘testthat.R’ [89s/146s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(getRad)
  > 
  > test_check("getRad")
  Saving _problems/test-secrets-6.R
  Saving _problems/test-secrets-22.R
  Saving _problems/test-secrets-33.R
  Saving _problems/test-secrets-50.R
  Saving _problems/test-secrets-61.R
  [ FAIL 6 | WARN 0 | SKIP 69 | PASS 48 ]
  
  ══ Skipped tests (69) ══════════════════════════════════════════════════════════
  • Because no key for Denmark is available in the testing environment (1):
    'test-get_pvol_dk.R:3:3'
  • On CRAN (68): 'test-get_pvol.R:52:3', 'test-get_pvol.R:70:3',
    'test-get_pvol.R:97:3', 'test-get_pvol.R:132:3', 'test-get_pvol.R:154:3',
    'test-get_pvol_cz.R:2:3', 'test-get_pvol_cz.R:24:3',
    'test-get_pvol_de.R:2:3', 'test-get_pvol_de.R:17:3',
    'test-get_pvol_ee.R:2:3', 'test-get_pvol_fi.R:2:3', 'test-get_pvol_nl.R:2:3',
    'test-get_pvol_nl.R:25:3', 'test-get_pvol_nl.R:58:3',
    'test-get_pvol_ro.R:2:3', 'test-get_pvol_ro.R:17:3',
    'test-get_pvol_se.R:24:3', 'test-get_pvol_se.R:36:3',
    'test-get_pvol_se.R:52:3', 'test-get_pvol_sk.R:2:3',
    'test-get_pvol_sk.R:19:3', 'test-get_pvol_us.R:5:3',
    'test-get_pvol_us.R:15:3', 'test-get_pvol_us.R:37:3',
    'test-get_pvol_us.R:46:3', 'test-get_vpts.R:2:3', 'test-get_vpts.R:78:3',
    'test-get_vpts.R:104:3', 'test-get_vpts.R:126:3', 'test-get_vpts.R:145:3',
    'test-get_vpts.R:193:3', 'test-get_vpts.R:253:3', 'test-get_vpts.R:270:3',
    'test-get_vpts.R:330:3', 'test-get_vpts.R:351:3', 'test-get_vpts.R:385:3',
    'test-get_vpts.R:421:3', 'test-get_vpts.R:458:3', 'test-get_vpts.R:569:3',
    'test-get_vpts.R:608:3', 'test-get_vpts.R:628:3',
    'test-get_vpts_aloft.R:72:3', 'test-get_vpts_coverage.R:14:3',
    'test-get_vpts_coverage.R:23:3', 'test-get_vpts_coverage.R:33:3',
    'test-get_vpts_coverage_aloft.R:2:3', 'test-get_vpts_coverage_aloft.R:11:3',
    'test-get_vpts_coverage_rmi.R:2:3', 'test-get_vpts_coverage_rmi.R:8:3',
    'test-get_vpts_coverage_rmi.R:23:3', 'test-get_vpts_coverage_rmi.R:49:3',
    'test-get_vpts_coverage_rmi.R:58:3', 'test-get_vpts_rmi.R:2:3',
    'test-get_vpts_rmi.R:23:3', 'test-get_vpts_rmi.R:67:3',
    'test-get_vpts_rmi.R:89:3', 'test-get_vpts_rmi.R:104:3',
    'test-get_weather_radars.R:21:3', 'test-get_weather_radars.R:26:3',
    'test-get_weather_radars.R:35:3', 'test-get_weather_radars.R:88:3',
    'test-get_weather_radars.R:133:3', 'test-get_weather_radars.R:178:3',
    'test-get_weather_radars.R:196:3', 'test-get_weather_radars.R:238:3',
    'test-get_weather_radars.R:269:3', 'test-utils-rmi.R:1:1',
    'test-utils.R:21:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-secrets.R:3:5'): get_secret fails correctly ────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `get_secret(c("unknown_secret", "unknown_secret2"))`: The package "keyring" is required to manage secrets in getRad
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-secrets.R:2:3
    2. │ └─base::force(code)
    3. ├─testthat::expect_error(...) at test-secrets.R:3: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. └─getRad::get_secret(c("unknown_secret", "unknown_secret2"))
   10.   └─rlang::check_installed("keyring", "to manage secrets in getRad")
  ── Error ('test-secrets.R:19:3'): set_secret fails correctly ───────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `set_secret(c("unknown_secret", "unknown_secret2"))`: The package "keyring" is required to manage secrets in getRad
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-secrets.R:19: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. └─getRad::set_secret(c("unknown_secret", "unknown_secret2"))
   8.   └─rlang::check_installed("keyring", "to manage secrets in getRad")
  ── Error ('test-secrets.R:30:5'): Fails correctly when getRad.key_prefix is not set ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `set_secret("dk_api_key", secret = "empty")`: The package "keyring" is required to manage secrets in getRad
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-secrets.R:29:3
    2. │ └─base::force(code)
    3. ├─testthat::expect_error(...) at test-secrets.R:30: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. └─getRad::set_secret("dk_api_key", secret = "empty")
   10.   └─rlang::check_installed("keyring", "to manage secrets in getRad")
  ── Error ('test-secrets.R:42:5'): set_secret informs where to get secret ───────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `set_secret("dk_api_key", "asdf")`: The package "keyring" is required to manage secrets in getRad
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-secrets.R:41:3
    2. │ └─base::force(code)
    3. ├─testthat::expect_silent(set_secret("dk_api_key", "asdf")) at test-secrets.R:42:5
    4. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    5. │   ├─testthat (local) .capture(...)
    6. │   │ ├─withr::with_output_sink(...)
    7. │   │ │ └─base::force(code)
    8. │   │ ├─base::withCallingHandlers(...)
    9. │   │ └─base::withVisible(code)
   10. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   11. └─getRad::set_secret("dk_api_key", "asdf")
   12.   └─rlang::check_installed("keyring", "to manage secrets in getRad")
  ── Error ('test-secrets.R:50:5'): setting and retrieving keys works ────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `set_secret("nl_api_key", "asdfasdf")`: The package "keyring" is required to manage secrets in getRad
  Backtrace:
      ▆
   1. ├─withr::with_options(...) at test-secrets.R:49:3
   2. │ └─base::force(code)
   3. ├─testthat::expect_true(set_secret("nl_api_key", "asdfasdf")) at test-secrets.R:50:5
   4. │ └─testthat::quasi_label(enquo(object), label)
   5. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   6. └─getRad::set_secret("nl_api_key", "asdfasdf")
   7.   └─rlang::check_installed("keyring", "to manage secrets in getRad")
  ── Error ('test-secrets.R:61:7'): setting and retrieving keys works with getRad.key_prefix ──
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `set_secret("nl_api_key", "asdfasdf")`: The package "keyring" is required to manage secrets in getRad
  Backtrace:
      ▆
   1. ├─withr::with_options(...) at test-secrets.R:58:3
   2. │ └─base::force(code)
   3. ├─testthat::expect_true(set_secret("nl_api_key", "asdfasdf")) at test-secrets.R:61:7
   4. │ └─testthat::quasi_label(enquo(object), label)
   5. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   6. └─getRad::set_secret("nl_api_key", "asdfasdf")
   7.   └─rlang::check_installed("keyring", "to manage secrets in getRad")
  
  [ FAIL 6 | WARN 0 | SKIP 69 | PASS 48 ]
  Error:
  ! Test failures.
  Execution halted