Running ‘testthat.R’ [1s/2s]
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: 404
  No results found.
  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. Error: get_dataflows returns a data frame (@tests.R#12)  ─────────────────
  HTTP failure: 404
  No results found.
  1: expect_equal(class(get_dataflows()), c("tbl_df", "tbl", "data.frame")) at testthat/tests.R:12
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_dataflows()
  5: make_request(query_url, "metadata")
  6: check_status(req)
  7: stop("HTTP failure: ", req$status_code, "\n", httr::content(req, "text"))
  
  ── 3. Error: get_dimensions returns a list of data frames (@tests.R#16)  ───────
  HTTP failure: 404
  No results found.
  1: get_dimensions("ICP.M.DE.N.000000+XEF000.4.ANR") at testthat/tests.R:16
  2: make_request(query_url, "metadata")
  3: check_status(req)
  4: stop("HTTP failure: ", req$status_code, "\n", httr::content(req, "text"))
  
  ── 4. Error: get_description returns a character vector (@tests.R#32)  ─────────
  HTTP failure: 404
  No results found.
  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: 3 SKIPPED: 0 FAILED: 4
  1. Error: get_data returns a data frame (@tests.R#6) 
  2. Error: get_dataflows returns a data frame (@tests.R#12) 
  3. Error: get_dimensions returns a list of data frames (@tests.R#16) 
  4. Error: get_description returns a character vector (@tests.R#32) 
  
  Error: testthat unit tests failed
  Execution halted