Running ‘testthat.R’ [6s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(rnpn)
  > 
  > test_check("rnpn")
  Geoserver is temporarily unavailable. Please try again later.
  Unable to parse server response. Please try again later.
  Saving _problems/test-npn-get-species-2.R
  Invalid input, function expects a numeric vector as input
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 103 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • On CRAN (18): 'test-npn-geoserver.R:16:3', 'test-npn-geoserver.R:45:3',
    'test-npn-geoserver.R:152:3', 'test-npn-observations.R:11:3',
    'test-npn-observations.R:32:3', 'test-npn-observations.R:71:3',
    'test-npn-observations.R:163:3', 'test-npn-observations.R:223:3',
    'test-npn-observations.R:262:3', 'test-npn-observations.R:304:3',
    'test-npn-observations.R:368:3', 'test-npn-observations.R:433:3',
    'test-npn-observations.R:498:3', 'test-npn-observations.R:564:3',
    'test-npn-observations.R:615:3', 'test-npn-observations.R:666:3',
    'test-npn-observations.R:755:3', 'test-npn-observations.R:860:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-npn-get-species.R:2:3'): npn_species returns a data frame ──────
  <httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
  Backtrace:
       ▆
    1. ├─testthat::skip_if_not(check_service(), "Service is down") at test-npn-get-species.R:2:3
    2. │ └─base::isTRUE(condition)
    3. └─rnpn:::check_service()
    4.   └─httr2::req_perform(req)
    5.     └─httr2:::handle_resp(req, resp, error_call = error_call)
    6.       └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
    7.         ├─rlang::catch_cnd(...)
    8.         │ ├─rlang::eval_bare(...)
    9.         │ ├─base::tryCatch(...)
   10.         │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   11.         │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.         │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   13.         │ └─base::force(expr)
   14.         └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 103 ]
  Error:
  ! Test failures.
  Execution halted