Running ‘testthat.R’ [2s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rfishbase)
  > options(is_test = TRUE) # set user-agent to distinguish automated tests
  > 
  > 
  > Sys.setenv(GITHUB_TOKEN=paste0("b2b7441d", "aeeb010b", "1df26f1f6", "0a7f1ed", 
  +                                "c485e443"))
  > 
  > test_check("rfishbase")
  ── 1. Error: We can pass a species_list based on taxanomic group (@test_species_
  Timeout was reached: [api.github.com] Connection timed out after 10001 milliseconds
  Backtrace:
    1. rfishbase::species_list(Genus = "Labroides")
    2. rfishbase::load_taxa(server)
    4. rfishbase:::`_f`(server = server, ... = ...)
    5. rfishbase:::fb_taxa_table(server)
    6. rfishbase:::fb_tbl("species", server)
    8. rfishbase:::`_f`(tbl = tbl, server = server, ... = ...)
   10. rfishbase:::get_release()
   11. rfishbase:::get_latest_release()
   12. rfishbase::available_releases()
   16. gh::gh(...)
   17. gh:::gh_make_request(req)
   20. httr:::request_perform(req, hu$handle$handle)
   22. httr:::request_fetch.write_memory(req$output, req$url, handle)
   23. curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: Look up species by SpecCode (@test_species_list.R#13)  ────────────
  Timeout was reached: [api.github.com] Connection timed out after 10000 milliseconds
  Backtrace:
    1. rfishbase::species_list(SpecCode = 5537)
    2. rfishbase::load_taxa(server)
    4. rfishbase:::`_f`(server = server, ... = ...)
    5. rfishbase:::fb_taxa_table(server)
    6. rfishbase:::fb_tbl("species", server)
    8. rfishbase:::`_f`(tbl = tbl, server = server, ... = ...)
   10. rfishbase:::get_release()
   11. rfishbase:::get_latest_release()
   12. rfishbase::available_releases()
   16. gh::gh(...)
   17. gh:::gh_make_request(req)
   20. httr:::request_perform(req, hu$handle$handle)
   22. httr:::request_fetch.write_memory(req$output, req$url, handle)
   23. curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 5 | SKIPPED: 20 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: We can pass a species_list based on taxanomic group (@test_species_list.R#5) 
  2. Error: Look up species by SpecCode (@test_species_list.R#13) 
  
  Error: testthat unit tests failed
  Execution halted