Running ‘testthat.R’ [0m/12m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(galah)
  > 
  > ala_config(cache_directory = tempdir(), email = "ala4r@ala.org.au",
  +            caching = FALSE)
  > test_check("galah")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (38)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-ala_species.R:10:3): ala_species returns dataframe ──────────────
  Error: Status code 504returned for url https://biocache-ws.ala.org.au/ws/assertions/codes<pointer: 0x55f67d99d5c0>
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-ala_species.R:10:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─galah::ala_species(taxa = select_taxa("reptilia"), filters = select_filters(basis_of_record = "FossilSpecimen"))
   5. │ └─galah:::build_query(taxa, filters, locations)
   6. └─galah::select_filters(basis_of_record = "FossilSpecimen")
   7.   └─galah::search_fields(type = "assertions")
   8.     └─galah:::get_assertions()
   9.       └─galah:::ala_GET(url, path = "ws/assertions/codes")
  ── Error (test-search_fields.R:4:3): search_fields returns correct types of field ──
  Error: Status code 504returned for url https://biocache-ws.ala.org.au/ws/index/fields<pointer: 0x55f67ea8fa50>
  Backtrace:
      █
   1. ├─testthat::expect_setequal(...) test-search_fields.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::unique(search_fields(type = "all")$type)
   5. └─galah::search_fields(type = "all")
   6.   └─galah:::get_fields()
   7.     └─galah:::all_fields()
   8.       └─galah:::ala_GET(url, path = "ws/index/fields")
  ── Error (test-search_fields.R:12:3): search_fields searches text correctly ────
  Error: Status code 504returned for url https://biocache-ws.ala.org.au/ws/index/fields<pointer: 0x55f67527ab10>
  Backtrace:
      █
   1. ├─testthat::expect_true(...) test-search_fields.R:12:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::grepl(...)
   5. │ └─base::is.factor(x)
   6. └─galah::search_fields("precipitation")
   7.   └─galah:::get_fields()
   8.     └─galah:::all_fields()
   9.       └─galah:::ala_GET(url, path = "ws/index/fields")
  
  [ FAIL 3 | WARN 0 | SKIP 38 | PASS 14 ]
  Error: Test failures
  Execution halted