Running ‘testthat.R’ [99s/217s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(galah)
  > 
  > galah_config(cache_directory = tempdir(), email = "ala4r@ala.org.au",
  +            caching = FALSE, atlas = "Australia", verbose = FALSE,
  +            run_checks = TRUE)
  > test_check("galah")
  [ FAIL 4 | WARN 1 | SKIP 33 | PASS 210 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (32)
  • Slow test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-international.R:65:1): (code run outside of `test_that()`) ──────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-international.R:65:0
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-search_field_values.R:17:5): search_field_values handles fields with lots of options ──
  Error in `eval(code, test_env)`: Invalid field detected.
  ℹ Search for the valid name of a desired field with `search_fields()`.
  ✖ "dataResourceUid" is not a valid field.
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-search_field_values.R:17:4
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─galah::search_field_values("dataResourceUid", limit = 10)
   7.   └─rlang::abort(bullets, call = caller_env())
  ── Error (test-search_taxa.R:21:3): search_taxa works for multiple queries ─────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-search_taxa.R:21:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-search_taxa.R:36:1): (code run outside of `test_that()`) ────────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-search_taxa.R:36:0
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  
  [ FAIL 4 | WARN 1 | SKIP 33 | PASS 210 ]
  Error: Test failures
  Execution halted