Running 'testthat.R' [3s/5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(kofdata)
  Loading required package: jsonlite
  Loading required package: httr
  > 
  > test_check("kofdata")
  -- 1. Failure: get_dataset works (@test_get_dataset.R#4)  ----------------------
  `get_dataset("some_nonexistent_set")` threw an error with unexpected message.
  Expected match: "The API responded"
  Actual message: ""
  Backtrace:
   1. testthat::expect_error(get_dataset("some_nonexistent_set"), "The API responded")
   6. kofdata::get_dataset("some_nonexistent_set")
  
  -- 2. Failure: get_metadata works (@test_get_metadata.R#5)  --------------------
  get_metadata("ch.kof.inu.ng08.fx.sector_kof.cm.q_ql_chg_price_sales_p3m.share_eq")[[1]] inherits from `logical` not `list`.
  
  -- 3. Error: list_keys_in_set works (@test_list_keys.R#5)  ---------------------
  An error occurred when calling the api:
  Status: 404
  Content:{"message":"no API found with those values"}
  Backtrace:
   1. kofdata::list_available_sets()
  
  -- 4. Error: list_public_keys works (@test_list_public_keys.R#5)  --------------
  An error occurred when calling the api:
  Status: 404
  Content:<!DOCTYPE html>
  <html lang="en">
  <head>
  <meta charset="utf-8">
  <title>Error</title>
  </head>
  <body>
  <pre>Cannot GET /listkeys</pre>
  </body>
  </html>
  Backtrace:
   1. kofdata::list_public_keys()
  
  -- 5. Error: list_available_sets works (@test_list_sets.R#5)  ------------------
  An error occurred when calling the api:
  Status: 404
  Content:{"message":"no API found with those values"}
  Backtrace:
   1. kofdata::list_available_sets()
  
  == testthat results  ===========================================================
  [ OK: 13 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Failure: get_dataset works (@test_get_dataset.R#4) 
  2. Failure: get_metadata works (@test_get_metadata.R#5) 
  3. Error: list_keys_in_set works (@test_list_keys.R#5) 
  4. Error: list_public_keys works (@test_list_public_keys.R#5) 
  5. Error: list_available_sets works (@test_list_sets.R#5) 
  
  Error: testthat unit tests failed
  Execution halted