Running 'testthat.R' [27s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > test_check("opencage")
  Loading required package: opencage
  [ FAIL 2 | WARN 0 | SKIP 33 | PASS 201 ]
  
  ══ Skipped tests (33) ══════════════════════════════════════════════════════════
  • On CRAN (12): 'test-oc_api_ok.R:2:3', 'test-oc_check_status.R:4:3',
    'test-oc_check_status.R:38:3', 'test-oc_check_status.R:49:3',
    'test-oc_check_status.R:60:3', 'test-oc_check_status.R:71:3',
    'test-oc_clear_cache.R:2:3', 'test-oc_forward.R:69:3', 'test-oc_get.R:4:3',
    'test-oc_get.R:60:3', 'test-oc_get.R:71:3', 'test-oc_reverse.R:60:3'
  • OpenCage API key is missing (21): 'test-deprecated.R:68:3',
    'test-deprecated.R:89:3', 'test-oc_check_status.R:15:3',
    'test-oc_forward.R:29:3', 'test-oc_forward.R:39:3', 'test-oc_forward.R:56:3',
    'test-oc_forward.R:78:3', 'test-oc_forward.R:92:3',
    'test-oc_forward.R:116:3', 'test-oc_forward.R:128:3',
    'test-oc_forward.R:186:3', 'test-oc_forward.R:194:3', 'test-oc_get.R:22:3',
    'test-oc_get.R:41:3', 'test-oc_process.R:118:3', 'test-oc_reverse.R:18:3',
    'test-oc_reverse.R:28:3', 'test-oc_reverse.R:45:3', 'test-oc_reverse.R:70:3',
    'test-oc_reverse.R:94:3', 'test-oc_reverse.R:109:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-deprecated.R:5:3'): opencage_forward/opencage_reverse return what they should. ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(.l = arglist, .f = .oc_process, return = return, 
      key = key, no_record = no_record, pb = pb)`: ℹ In index: 1.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [api.opencagedata.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─lifecycle::expect_deprecated(results <- opencage_forward(placename = "Sarzeau")) at test-deprecated.R:5:3
    2. │ └─testthat::expect_warning(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─opencage::opencage_forward(placename = "Sarzeau")
    8. │ └─opencage::oc_forward(...)
    9. │   └─opencage:::oc_process(...)
   10. │     └─purrr::pmap(...)
   11. │       └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress)
   12. │         ├─purrr:::with_indexed_errors(...)
   13. │         │ └─base::withCallingHandlers(...)
   14. │         ├─purrr:::call_with_cleanup(...)
   15. │         └─opencage (local) .f(...)
   16. │           ├─ratelimitr (local) oc_get_memoise(oc_url)
   17. │           │ ├─base::withVisible(eval(mc, parent.frame()))
   18. │           │ └─base::eval(mc, parent.frame())
   19. │           │   └─base::eval(mc, parent.frame())
   20. │           └─ratelimitr (local) `<rt_lmtd_>`(oc_url = oc_url)
   21. │             ├─base::eval(as.call(nf))
   22. │             │ └─base::eval(as.call(nf))
   23. │             └─opencage (local) fun(oc_url = "https://api.opencagedata.com/geocode/v1/json?q=Sarzeau&limit=10&no_annotations=0&roadinfo=0&no_dedupe=0&no_record=0&abbrv=0&add_request=1&key=6d0e711d72d74daeb2b0bfd2a5cdfdba")
   24. │               └─client$get()
   25. │                 └─private$make_request(rr)
   26. │                   └─crul:::crul_fetch(opts)
   27. │                     └─curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
   28. ├─curl:::raise_libcurl_error(...)
   29. │ └─base::stop(e)
   30. └─purrr (local) `<fn>`(`<crl_rr__>`)
   31.   └─cli::cli_abort(...)
   32.     └─rlang::abort(...)
  ── Error ('test-deprecated.R:28:3'): opencage_forward/opencage_reverse return what they should
            with several parameters. ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(.l = arglist, .f = .oc_process, return = return, 
      key = key, no_record = no_record, pb = pb)`: ℹ In index: 1.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [api.opencagedata.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─lifecycle::expect_deprecated(...) at test-deprecated.R:28:3
    2. │ └─testthat::expect_warning(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─opencage::opencage_forward(...)
    8. │ └─opencage::oc_forward(...)
    9. │   └─opencage:::oc_process(...)
   10. │     └─purrr::pmap(...)
   11. │       └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress)
   12. │         ├─purrr:::with_indexed_errors(...)
   13. │         │ └─base::withCallingHandlers(...)
   14. │         ├─purrr:::call_with_cleanup(...)
   15. │         └─opencage (local) .f(...)
   16. │           ├─ratelimitr (local) oc_get_memoise(oc_url)
   17. │           │ ├─base::withVisible(eval(mc, parent.frame()))
   18. │           │ └─base::eval(mc, parent.frame())
   19. │           │   └─base::eval(mc, parent.frame())
   20. │           └─ratelimitr (local) `<rt_lmtd_>`(oc_url = oc_url)
   21. │             ├─base::eval(as.call(nf))
   22. │             │ └─base::eval(as.call(nf))
   23. │             └─opencage (local) fun(oc_url = "https://api.opencagedata.com/geocode/v1/json?q=Paris&language=fr&limit=2&min_confidence=5&no_annotations=1&roadinfo=0&no_dedupe=0&no_record=0&abbrv=0&add_request=1&key=6d0e711d72d74daeb2b0bfd2a5cdfdba")
   24. │               └─client$get()
   25. │                 └─private$make_request(rr)
   26. │                   └─crul:::crul_fetch(opts)
   27. │                     └─curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
   28. ├─curl:::raise_libcurl_error(...)
   29. │ └─base::stop(e)
   30. └─purrr (local) `<fn>`(`<crl_rr__>`)
   31.   └─cli::cli_abort(...)
   32.     └─rlang::abort(...)
  
  [ FAIL 2 | WARN 0 | SKIP 33 | PASS 201 ]
  Error: Test failures
  Execution halted