Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(noaaoceans)
  > 
  > test_check("noaaoceans")
  [ FAIL 13 | WARN 0 | SKIP 10 | PASS 6 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (8)
  • Skipping until I can find a station with a notice (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_data_type.R:89'): Errors Are Returned With Invalid Opitons ─────
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_data_type.R:89:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─noaaoceans::query_derived_products(station_id = "notreal", product_name = "toptenwaterlevels")
    7.   └─jsonlite::fromJSON(parsed, simplifyDataFrame = TRUE, flatten = TRUE)
    8.     └─jsonlite:::parse_and_simplify(...)
    9.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   10.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test_query_metadata.R:7'): Data Frame is returned for all stations ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata()`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(query_metadata(), "data.frame") at test_query_metadata.R:7:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata()
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:11'): Data Frame is Returned for Non Resource Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("9414290")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(query_metadata("9414290"), "data.frame") at test_query_metadata.R:11:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("9414290")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:15'): Data Frame is Returned for Datums Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("9414290", "datums")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(query_metadata("9414290", "datums"), "data.frame") at test_query_metadata.R:15:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("9414290", "datums")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:19'): Data Frame is Returned for Superseded datums Resource Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("1611347", "supersededdatums")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_query_metadata.R:19:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("1611347", "supersededdatums")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:23'): Data Frame is Returned for harcon Resource Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("1611400", "harcon")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(query_metadata("1611400", "harcon"), "data.frame") at test_query_metadata.R:23:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("1611400", "harcon")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:27'): Data Frame is Returned for sensors Resource Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("9414290", "sensors")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(query_metadata("9414290", "sensors"), "data.frame") at test_query_metadata.R:27:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("9414290", "sensors")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:31'): Data Frame is Returned for details Resource Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("9075065", "details")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(query_metadata("9075065", "details"), "data.frame") at test_query_metadata.R:31:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("9075065", "details")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:45'): Data Frame is Returned for benchmarks Resource Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("9414290", "benchmarks")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_query_metadata.R:45:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("9414290", "benchmarks")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:49'): Data Frame is Returned for tide prediction offset Resource Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("1610367", "tidepredoffsets")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_query_metadata.R:49:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("1610367", "tidepredoffsets")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:53'): Data Frame is Returned for floodlevels Resource Call ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata("1611400", "floodlevels")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_query_metadata.R:53:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata("1611400", "floodlevels")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:58'): Data Frame is returned for call with type specified ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata(type = "waterlevels")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(query_metadata(type = "waterlevels"), "data.frame") at test_query_metadata.R:58:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata(type = "waterlevels")
   5.   └─httr::stop_for_status(api_response)
  ── Error ('test_query_metadata.R:63'): Data Frame is returned for call with ports specified ──
  <http_504/http_500/http_error/error/condition>
  Error in `query_metadata(ports = "ca")`: Gateway Timeout (HTTP 504).
  Backtrace:
      ▆
   1. ├─testthat::expect_is(query_metadata(ports = "ca"), "data.frame") at test_query_metadata.R:63:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─noaaoceans::query_metadata(ports = "ca")
   5.   └─httr::stop_for_status(api_response)
  
  [ FAIL 13 | WARN 0 | SKIP 10 | PASS 6 ]
  Error: Test failures
  Execution halted