Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(coinmarketcapr)
  > 
  > test_check("coinmarketcapr")
  ── 1. Error: The output dataframe Type is  (@test-fun.R#7)  ────────────────────
  lexical error: invalid char in json text.
                                         <!DOCTYPE html> <!--[if lt IE 7
                       (right here) ------^
  Backtrace:
   1. testthat::expect_equal(class(get_global_marketcap("USD")), "data.frame")
   4. coinmarketcapr::get_global_marketcap("USD")
   6. jsonlite::fromJSON(...)
   7. jsonlite:::parse_and_simplify(...)
   8. jsonlite:::parseJSON(txt, bigint_as_char)
   9. jsonlite:::parse_string(txt, bigint_as_char)
  
  ── 2. Error: The output dataframe Type is  (@test-fun.R#14)  ───────────────────
  lexical error: invalid char in json text.
                                         <!DOCTYPE html> <!--[if lt IE 7
                       (right here) ------^
  Backtrace:
   1. testthat::expect_equal(...)
   4. coinmarketcapr::get_marketcap_ticker_all("USD")
   6. jsonlite::fromJSON(...)
   7. jsonlite:::parse_and_simplify(...)
   8. jsonlite:::parseJSON(txt, bigint_as_char)
   9. jsonlite:::parse_string(txt, bigint_as_char)
  
  ── 3. Error: The output ggplot Type is  (@test-fun.R#22)  ──────────────────────
  lexical error: invalid char in json text.
                                         <!DOCTYPE html> <!--[if lt IE 7
                       (right here) ------^
  Backtrace:
    1. testthat::expect_true(is.ggplot(plot_top_currencies("USD")))
    5. coinmarketcapr::plot_top_currencies("USD")
    7. jsonlite::fromJSON(...)
    8. jsonlite:::parse_and_simplify(...)
    9. jsonlite:::parseJSON(txt, bigint_as_char)
   10. jsonlite:::parse_string(txt, bigint_as_char)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: The output dataframe Type is  (@test-fun.R#7) 
  2. Error: The output dataframe Type is  (@test-fun.R#14) 
  3. Error: The output ggplot Type is  (@test-fun.R#22) 
  
  Error: testthat unit tests failed
  Execution halted