Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(coindeskr)
  > 
  > test_check("coindeskr")
  ── 1. Error: The output dataframe Type is  (@test-fun.R#6)  ────────────────────
  cannot open the connection to 'https://api.coindesk.com/v1/bpi/supported-currencies.json'
  1: expect_equal(class(get_currency_list()), "data.frame") at testthat/test-fun.R:6
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_currency_list()
  5: jsonlite::read_json("https://api.coindesk.com/v1/bpi/supported-currencies.json", 
         simplifyVector = T)
  6: fromJSON(file(path), simplifyVector = simplifyVector, ...)
  7: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_con(txt, bigint_as_char)
  10: open(con, "rb")
  11: open.connection(con, "rb")
  
  ── 2. Error: The output dataframe Type is  (@test-fun.R#14)  ───────────────────
  cannot open the connection to 'https://api.coindesk.com/v1/bpi/supported-currencies.json'
  1: expect_equal(class(get_current_price()), "data.frame") at testthat/test-fun.R:14
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: get_current_price()
  5: get_currency_list()
  6: jsonlite::read_json("https://api.coindesk.com/v1/bpi/supported-currencies.json", 
         simplifyVector = T)
  7: fromJSON(file(path), simplifyVector = simplifyVector, ...)
  8: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  9: parseJSON(txt, bigint_as_char)
  10: parse_con(txt, bigint_as_char)
  11: open(con, "rb")
  12: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 2 SKIPPED: 0 FAILED: 2
  1. Error: The output dataframe Type is  (@test-fun.R#6) 
  2. Error: The output dataframe Type is  (@test-fun.R#14) 
  
  Error: testthat unit tests failed
  Execution halted