Running ‘testthat.R’ [95s/169s]
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-get_vpts-658.R
  [ FAIL 1 | WARN 0 | SKIP 68 | PASS 66 ]
  
  ══ Skipped tests (68) ══════════════════════════════════════════════════════════
  • On CRAN (67): '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:30:3', 'test-get_pvol_nl.R:87:3',
    'test-get_pvol_ro.R:2:3', 'test-get_pvol_ro.R:18: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:69: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'
  • Sys.which("KNMI_vol_h5_to_ODIM_h5") == "" is TRUE (1):
    'test-get_pvol_nl.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_vpts.R:655:3'): `get_vpts` for a single time gets closest nominal time ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `get_vpts("nlhrw", t + lubridate::seconds(123))`: i In index: 1.
  Caused by error in `purrr::map()`:
  i In index: 1.
  Caused by error in `.f()`:
  ! `resp` must be an HTTP response object, not a <httr2_failure> object.
  Backtrace:
       ▆
    1. ├─testthat::expect_identical(...) at test-get_vpts.R:655:3
    2. │ └─testthat::quasi_label(enquo(expected), expected.label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─getRad::get_vpts("nlhrw", t + lubridate::seconds(123))
    5. │ ├─getRad:::radar_to_name(...)
    6. │ │ └─purrr::set_names(...)
    7. │ └─purrr::map(...)
    8. │   └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    9. │     ├─purrr:::with_indexed_errors(...)
   10. │     │ └─base::withCallingHandlers(...)
   11. │     ├─purrr:::call_with_cleanup(...)
   12. │     └─getRad (local) .f(.x[[i]], ...)
   13. │       └─getRad:::get_vpts_aloft(...)
   14. │         ├─dplyr::mutate(...)
   15. │         ├─dplyr::relocate(...)
   16. │         ├─purrr::list_rbind(...)
   17. │         │ └─purrr:::check_list_of_data_frames(x)
   18. │         │   └─vctrs::obj_check_list(x, call = error_call)
   19. │         ├─purrr::keep(...)
   20. │         │ └─purrr:::where_if(.x, .p, ...)
   21. │         │   └─purrr:::map_(.x, .p, ..., .type = "logical", .purrr_error_call = .purrr_error_call)
   22. │         │     └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
   23. │         ├─purrr::map2(...)
   24. │         │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
   25. │         │   └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
   26. │         └─getRad:::read_vpts_from_url(paste(aloft_data_url, s3_paths, sep = "/"))
   27. │           ├─purrr::map(...)
   28. │           │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
   29. │           │   └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
   30. │           └─getRad:::fetch_from_url_raw(urls, use_cache = use_cache)
   31. │             └─purrr::map(data_response, httr2::resp_body_raw)
   32. │               └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
   33. │                 ├─purrr:::with_indexed_errors(...)
   34. │                 │ └─base::withCallingHandlers(...)
   35. │                 ├─purrr:::call_with_cleanup(...)
   36. │                 └─httr2 (local) .f(.x[[i]], ...)
   37. │                   └─httr2:::check_response(resp)
   38. │                     └─httr2:::stop_input_type(...)
   39. │                       └─rlang::abort(message, ..., call = call, arg = arg)
   40. │                         └─rlang:::signal_abort(cnd, .file)
   41. │                           └─base::signalCondition(cnd)
   42. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
   43. │ └─cli::cli_abort(...)
   44. │   └─rlang::abort(...)
   45. │     └─rlang:::signal_abort(cnd, .file)
   46. │       └─base::signalCondition(cnd)
   47. └─purrr (local) `<fn>`(`<prrr_rr_>`)
   48.   └─cli::cli_abort(...)
   49.     └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 68 | PASS 66 ]
  Error:
  ! Test failures.
  Execution halted