Running ‘testthat.R’ [1s/42s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(eiopaR)
  > 
  > test_check("eiopaR")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-api.R:2:3): API online ──────────────────────────────────────────
  Error: Timeout was reached: [mehdiechchelh.com] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─eiopaR:::api_get("/api/rfr/") test-api.R:2:2
   2.   └─httr::GET(url)
   3.     └─httr:::request_perform(req, hu$handle$handle)
   4.       ├─httr:::request_fetch(req$output, req$url, handle)
   5.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   6.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-eiopaR.R:2:3): Check API calls : No VA - 1 curve ────────────────
  Error: Timeout was reached: [mehdiechchelh.com] Connection timed out after 10001 milliseconds
  Backtrace:
      █
   1. └─eiopaR::get_rfr_no_va(region = "FR", year = 2018, month = 12) test-eiopaR.R:2:2
   2.   └─eiopaR::get_rfr(type = type, region = region, year = year, month = month)
   3.     └─eiopaR:::api_get(sprintf(path))
   4.       └─httr::GET(url)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-eiopaR.R:13:3): Check API calls : No VA - 4 curves (2 different years/months) ──
  Error: Timeout was reached: [mehdiechchelh.com] Connection timed out after 10000 milliseconds
  Backtrace:
      █
   1. └─eiopaR::get_rfr_no_va(...) test-eiopaR.R:13:2
   2.   └─eiopaR::get_rfr(type = type, region = region, year = year, month = month)
   3.     └─eiopaR:::api_get(sprintf(path))
   4.       └─httr::GET(url)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-eiopaR.R:29:3): Check API calls : With VA - 4 curves (2 different years/months) ──
  Error: Timeout was reached: [mehdiechchelh.com] Connection timed out after 10000 milliseconds
  Backtrace:
      █
   1. └─eiopaR::get_rfr_with_va(...) test-eiopaR.R:29:2
   2.   └─eiopaR::get_rfr(type = type, region = region, year = year, month = month)
   3.     └─eiopaR:::api_get(sprintf(path))
   4.       └─httr::GET(url)
   5.         └─httr:::request_perform(req, hu$handle$handle)
   6.           ├─httr:::request_fetch(req$output, req$url, handle)
   7.           └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.             └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted