Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > test_check("giedata")
  Loading required package: giedata
  [1] "There has been the following error message: Server error"                   
  [2] "There has been the following error message: Bad Gateway"                    
  [3] "There has been the following error message: Server error: (502) Bad Gateway"
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 15 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-regular-errors.R:34:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-regular-errors.R:40:3'): warning pops up if date, from and to are set ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ...)`: ℹ In index: 1.
  Caused by error:
  ! The request was unsuccessful, the API returned HTTP error code 502. More information can be found in the API error message printed above.
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-regular-errors.R:40:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─giedata::get_giedata2(...)
    7. │ └─purrr::map_dfr(...)
    8. │   └─purrr::map(.x, .f, ...)
    9. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
   10. │       ├─purrr:::with_indexed_errors(...)
   11. │       │ └─base::withCallingHandlers(...)
   12. │       ├─purrr:::call_with_cleanup(...)
   13. │       └─giedata (local) .f(.x[[i]], ...)
   14. │         └─giedata::get_giedata(...)
   15. │           └─giedata:::getrequest(...)
   16. │             └─giedata:::send_getrequest(url = url, apikey = apikey)
   17. │               └─base::stop(...)
   18. └─base::.handleSimpleError(...)
   19.   └─purrr (local) h(simpleError(msg, call))
   20.     └─cli::cli_abort(...)
   21.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 15 ]
  Error: Test failures
  Execution halted