Running ‘testthat.R’ [5s/127s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(StreamCatTools)
  > 
  > test_check("StreamCatTools")
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 71 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-lc_get_params.R:22:3'): lc_get_params for region parameters ────
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics'
  Backtrace:
      ▆
   1. └─StreamCatTools::sc_get_params(param = "region") at test-lc_get_params.R:22:3
   2.   └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/streams/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-sc_get_params.R:26:3'): sc_get_params for variable_info parameters ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics'
  Backtrace:
      ▆
   1. └─StreamCatTools::sc_get_params(param = "variable_info") at test-sc_get_params.R:26:3
   2.   └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/streams/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-sc_getdata.R:44:3'): sc_get_data for all ws metrics for a 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_get_data(...) at test-sc_getdata.R:44: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")
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 71 ]
  Error: Test failures
  Execution halted