Running 'testthat.R' [573s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(StreamCatTools)
  > 
  > test_check("StreamCatTools")
  [ FAIL 5 | WARN 5 | SKIP 0 | PASS 62 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-lc_get_params.R:31:3'): lc_get_params for name parameters ──────
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/lakes/metrics'
  Backtrace:
      ▆
   1. └─StreamCatTools::lc_get_params(param = "metric_names") at test-lc_get_params.R:31:3
   2.   └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/lakes/metrics")
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_con(txt, bigint_as_char)
   6.           ├─base::open(con, "rb")
   7.           └─base::open.connection(con, "rb")
  ── Error ('test-lc_get_params.R:37:3'): lc_get_params for state parameters ─────
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/lakes/metrics'
  Backtrace:
      ▆
   1. └─StreamCatTools::lc_get_params(param = "state") at test-lc_get_params.R:37:3
   2.   └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/lakes/metrics")
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_con(txt, bigint_as_char)
   6.           ├─base::open(con, "rb")
   7.           └─base::open.connection(con, "rb")
  ── Error ('test-lc_getdata.R:14:13'): lc_get_data for a county and ws metrics returns a data frame ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics'
  Backtrace:
      ▆
   1. └─StreamCatTools::lc_get_data(...) at test-lc_getdata.R:14:13
   2.   └─StreamCatTools::sc_get_params(param = "metric_names")
   3.     └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/streams/metrics")
   4.       └─jsonlite:::parse_and_simplify(...)
   5.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   6.           └─jsonlite:::parse_con(txt, bigint_as_char)
   7.             ├─base::open(con, "rb")
   8.             └─base::open.connection(con, "rb")
  ── Error ('test-sc_getdata.R:20:3'): sc_get_data for showAreaSqKm and showPctFull returns a data frame ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics'
  Backtrace:
      ▆
   1. └─StreamCatTools::sc_get_data(...) at test-sc_getdata.R:20:3
   2.   └─StreamCatTools::sc_get_params(param = "metric_names")
   3.     └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/streams/metrics")
   4.       └─jsonlite:::parse_and_simplify(...)
   5.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   6.           └─jsonlite:::parse_con(txt, bigint_as_char)
   7.             ├─base::open(con, "rb")
   8.             └─base::open.connection(con, "rb")
  ── Error ('test-sc_nlcd.R:5:13'): sc_get_data for a sample COMID returns a data frame ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics'
  Backtrace:
      ▆
   1. └─StreamCatTools::sc_nlcd(year = "2019", aoi = "cat", comid = "179,1337,1337420") at test-sc_nlcd.R:5:13
   2.   └─StreamCatTools::sc_get_data(...)
   3.     └─StreamCatTools::sc_get_params(param = "metric_names")
   4.       └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/streams/metrics")
   5.         └─jsonlite:::parse_and_simplify(...)
   6.           └─jsonlite:::parseJSON(txt, bigint_as_char)
   7.             └─jsonlite:::parse_con(txt, bigint_as_char)
   8.               ├─base::open(con, "rb")
   9.               └─base::open.connection(con, "rb")
  
  [ FAIL 5 | WARN 5 | SKIP 0 | PASS 62 ]
  Error: Test failures
  Execution halted