Running ‘testthat.R’ [4s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(traitdataform)
  > 
  > test_check("traitdataform")
  ── 1. Error: gbif taxonomy reachable (@test.map_gbif_taxonomy.R#10)  ───────────
  Empty reply from server
  Backtrace:
    1. testthat::expect_known_hash(...)
    4. traitdataform::get_gbif_taxonomy(as.character(carabids$name_correct[1:12]))
    5. taxize::get_gbifid_(x, messages = verbose)
    7. base::lapply(...)
    8. taxize:::FUN(X[[i]], ...)
    9. taxize:::gbif_name_backbone(sciname)
   10. cli$get(query = args, ...)
   11. private$make_request(rr)
   12. crul:::crul_fetch(opts)
   13. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 2. Error: mapping misspelled names (@test.map_gbif_taxonomy.R#15)  ──────────
  Empty reply from server
  Backtrace:
    1. testthat::expect_true(...)
    4. traitdataform::get_gbif_taxonomy("Cicindela_silvatica")
    5. taxize::get_gbifid_(x, messages = verbose)
    7. base::lapply(...)
    8. taxize:::FUN(X[[i]], ...)
    9. taxize:::gbif_name_backbone(sciname)
   10. cli$get(query = args, ...)
   11. private$make_request(rr)
   12. crul:::crul_fetch(opts)
   13. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 3. Error: mapping synonyms (@test.map_gbif_taxonomy.R#24)  ──────────────────
  Empty reply from server
  Backtrace:
    1. testthat::expect_true(...)
    4. traitdataform::get_gbif_taxonomy("Limodromus_assimilis")
    5. taxize::get_gbifid_(x, messages = verbose)
    7. base::lapply(...)
    8. taxize:::FUN(X[[i]], ...)
    9. taxize:::gbif_name_backbone(sciname)
   10. cli$get(query = args, ...)
   11. private$make_request(rr)
   12. crul:::crul_fetch(opts)
   13. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 4. Error: mapping doubtful taxa (@test.map_gbif_taxonomy.R#34)  ─────────────
  Empty reply from server
  Backtrace:
    1. testthat::expect_match(...)
    4. traitdataform::get_gbif_taxonomy("Rhynchaenus fagi")
    5. taxize::get_gbifid_(x, messages = verbose)
    7. base::lapply(...)
    8. taxize:::FUN(X[[i]], ...)
    9. taxize:::gbif_name_backbone(sciname)
   10. cli$get(query = args, ...)
   11. private$make_request(rr)
   12. crul:::crul_fetch(opts)
   13. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 5. Error: mapping lower or higher taxa (@test.map_gbif_taxonomy.R#41)  ──────
  Empty reply from server
  Backtrace:
    1. testthat::expect_true(...)
    4. traitdataform::get_gbif_taxonomy("Acrocephalus familiaris kingi")
    5. taxize::get_gbifid_(x, messages = verbose)
    7. base::lapply(...)
    8. taxize:::FUN(X[[i]], ...)
    9. taxize:::gbif_name_backbone(sciname)
   10. cli$get(query = args, ...)
   11. private$make_request(rr)
   12. crul:::crul_fetch(opts)
   13. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 6. Error: not matching (@test.map_gbif_taxonomy.R#52)  ──────────────────────
  Empty reply from server
  Backtrace:
    1. testthat::expect_true(...)
    4. traitdataform::get_gbif_taxonomy("No_species")
    5. taxize::get_gbifid_(x, messages = verbose)
    7. base::lapply(...)
    8. taxize:::FUN(X[[i]], ...)
    9. taxize:::gbif_name_backbone(sciname)
   10. cli$get(query = args, ...)
   11. private$make_request(rr)
   12. crul:::crul_fetch(opts)
   13. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ── 7. Error: mapping of taxa works (@test.standardize.R#9)  ────────────────────
  Empty reply from server
  Backtrace:
    1. traitdataform::standardise_taxa(...)
    4. taxize::get_gbifid_(x, messages = verbose)
    6. base::lapply(...)
    7. taxize:::FUN(X[[i]], ...)
    8. taxize:::gbif_name_backbone(sciname)
    9. cli$get(query = args, ...)
   10. private$make_request(rr)
   11. crul:::crul_fetch(opts)
   12. curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 41 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: gbif taxonomy reachable (@test.map_gbif_taxonomy.R#10) 
  2. Error: mapping misspelled names (@test.map_gbif_taxonomy.R#15) 
  3. Error: mapping synonyms (@test.map_gbif_taxonomy.R#24) 
  4. Error: mapping doubtful taxa (@test.map_gbif_taxonomy.R#34) 
  5. Error: mapping lower or higher taxa (@test.map_gbif_taxonomy.R#41) 
  6. Error: not matching (@test.map_gbif_taxonomy.R#52) 
  7. Error: mapping of taxa works (@test.standardize.R#9) 
  
  Error: testthat unit tests failed
  Execution halted