Running ‘testthat.R’ [3s/126s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ecb)
  > 
  > test_check("ecb")
  ── 1. Error: get_data returns a data frame (@tests.R#6)  ───────────────────────
  HTTP failure: 500
  An error has occurred. Please try again later or contact the support hotline at statistics@ecb.europa.eu.
  1: get_data(key, filter) at testthat/tests.R:6
  2: make_request(query_url, "data")
  3: check_status(req)
  4: stop("HTTP failure: ", req$status_code, "\n", httr::content(req, "text"))
  
  ── 2. Failure: malformed series key returns 404 error (@tests.R#26)  ───────────
  `get_dimensions(key)` threw an error with unexpected message.
  Expected match: "404"
  Actual message: "HTTP failure: 500\nAn error has occurred. Please try again later or contact the support hotline at statistics@ecb.europa.eu."
  
  ── 3. Failure: malformed series key returns 404 error (@tests.R#27)  ───────────
  `get_description(key)` threw an error with unexpected message.
  Expected match: "404"
  Actual message: "HTTP failure: 500\nAn error has occurred. Please try again later or contact the support hotline at statistics@ecb.europa.eu."
  
  ── 4. Error: get_description returns a character vector (@tests.R#32)  ─────────
  HTTP failure: 500
  An error has occurred. Please try again later or contact the support hotline at statistics@ecb.europa.eu.
  1: get_description(key) at testthat/tests.R:32
  2: vapply(get_dimensions(key), function(x) x$value[x$dim == "TITLE_COMPL"], character(1))
  3: get_dimensions(key)
  4: make_request(query_url, "metadata")
  5: check_status(req)
  6: stop("HTTP failure: ", req$status_code, "\n", httr::content(req, "text"))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 4 SKIPPED: 0 FAILED: 4
  1. Error: get_data returns a data frame (@tests.R#6) 
  2. Failure: malformed series key returns 404 error (@tests.R#26) 
  3. Failure: malformed series key returns 404 error (@tests.R#27) 
  4. Error: get_description returns a character vector (@tests.R#32) 
  
  Error: testthat unit tests failed
  Execution halted