Running ‘test-all.R’ [27s/42s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > library("vcr")
  > library("rnpn")
  > 
  > test_check("rnpn")
  
  Downloading: 54 B     
  Downloading: 54 B     
  Downloading: 280 B     
  Downloading: 280 B     
  Downloading: 290 B     
  Downloading: 290 B     
  Downloading: 300 B     
  Downloading: 300 B     
  Downloading: 300 B     
  Downloading: 300 B     XPath error : Undefined namespace prefix
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● No file downloads (2)
  ● On CRAN (11)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-npn-get-species.R:54:3): npn_species_state works ────────────────
  Error: Failed to connect to www-dev.usanpn.org port 443: Connection refused
  Backtrace:
       █
    1. ├─testthat::expect_null(npn_species_state("AZ", "Something else")) test-npn-get-species.R:54:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rnpn::npn_species_state("AZ", "Something else")
    5.   ├─rnpn:::ldfply(...)
    6.   │ └─base::lapply(...)
    7.   └─rnpn:::npn_GET(...)
    8.     └─httr::GET(url, query = args, ...)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-npn-observations.R:35:3): basic function works ──────────────────
  Error: Failed to connect to www-dev.usanpn.org port 443: Connection refused
  Backtrace:
      █
   1. ├─vcr::use_cassette(...) test-npn-observations.R:35:2
   2. │ └─cassette$call_block(...)
   3. └─rnpn::npn_download_status_data("Unit Test", c(2013), species_ids = c(6)) test-npn-observations.R:36:4
   4.   └─rnpn:::npn_get_data_by_year(...)
   5.     └─rnpn:::npn_get_data(...)
   6.       └─jsonlite::stream_in(...)
   7.         ├─base::open(con, "rb")
   8.         └─base::open.connection(con, "rb")
  ── Error (test-npn-partners.R:15:3): npn_groups works ──────────────────────────
  Error: Failed to connect to www-dev.usanpn.org port 443: Connection refused
  Backtrace:
      █
   1. └─rnpn::npn_groups(TRUE) test-npn-partners.R:15:2
   2.   ├─tibble::as_tibble(...)
   3.   └─rnpn:::npn_GET(paste0(base(), end_point), list(), TRUE, ...)
   4.     └─httr::GET(url, query = args, ...)
   5.       └─httr:::request_perform(req, hu$handle$handle)
   6.         ├─httr:::request_fetch(req$output, req$url, handle)
   7.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   8.           └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 3 | WARN 0 | SKIP 13 | PASS 110 ]
  Error: Test failures
  In addition: Warning message:
  In for (i in seq_along(specs)) { :
    closing unused connection 4 (https://www-dev.usanpn.org/npn_portal//observations/getObservations.ndjson?)
  Execution halted