Running ‘testthat.R’ [4s/534s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(traitdataform)
  > 
  > test_check("traitdataform")
  ── 1. Error: (unknown) (@test.columns_to_ETS.R#5)  ─────────────────────────────
  cannot open the connection to 'https://v1.datadryad.org/bitstream/handle/10255/dryad.76638/ArthropodSpeciesTraits.txt?sequence=1'
  Backtrace:
    1. traitdataform::pulldata("arthropodtraits")
    7. utils::read.csv(...)
    8. utils::read.table(...)
   10. base::open.connection(file, "rt")
  
  ── 2. Error: (unknown) (@test.map_gbif_taxonomy.R#6)  ──────────────────────────
  cannot open the connection to 'https://v1.datadryad.org/bitstream/handle/10255/dryad.134418/carabid%20traits%20final.txt'
  Backtrace:
    1. traitdataform::pulldata("carabids")
    7. utils::read.delim(...)
    8. utils::read.table(...)
   10. base::open.connection(file, "rt")
  
  ── 3. Error: mapping of taxa works (@test.standardize.R#6)  ────────────────────
  cannot open the connection to 'https://v1.datadryad.org/bitstream/handle/10255/dryad.134418/carabid%20traits%20final.txt'
  Backtrace:
    1. traitdataform::pulldata("carabids")
    7. utils::read.delim(...)
    8. utils::read.table(...)
   10. base::open.connection(file, "rt")
  
  ── 4. Error: mapping of traits based on thesaurus works (@test.standardize.R#64)
  no applicable method for 'droplevels' applied to an object of class "character"
  Backtrace:
   1. traitdataform::standardize_traits(dataset2, thesaurus = traits2)
   2. base::droplevels(subset(out, traitNameStd == i)$traitUnitStd)
  
  ── 5. Error: unit conversion works (@test.standardize.R#73)  ───────────────────
  cannot open the connection to 'https://v1.datadryad.org/bitstream/handle/10255/dryad.134418/carabid%20traits%20final.txt'
  Backtrace:
    1. traitdataform::pulldata("carabids")
    7. utils::read.delim(...)
    8. utils::read.table(...)
   10. base::open.connection(file, "rt")
  
  ── 6. Error: factor level harmonizationworks (@test.standardize.R#79)  ─────────
  cannot open the connection to 'https://v1.datadryad.org/bitstream/handle/10255/dryad.76638/ArthropodSpeciesTraits.txt?sequence=1'
  Backtrace:
    1. traitdataform::pulldata("arthropodtraits")
    7. utils::read.csv(...)
    8. utils::read.table(...)
   10. base::open.connection(file, "rt")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 5 | FAILED: 6 ]
  1. Error: (unknown) (@test.columns_to_ETS.R#5) 
  2. Error: (unknown) (@test.map_gbif_taxonomy.R#6) 
  3. Error: mapping of taxa works (@test.standardize.R#6) 
  4. Error: mapping of traits based on thesaurus works (@test.standardize.R#64) 
  5. Error: unit conversion works (@test.standardize.R#73) 
  6. Error: factor level harmonizationworks (@test.standardize.R#79) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In for (i in 1L:d2) { :
    closing unused connection 4 (https://v1.datadryad.org/bitstream/handle/10255/dryad.76638/ArthropodSpeciesTraits.txt?sequence=1)
  2: closing unused connection 5 (https://v1.datadryad.org/bitstream/handle/10255/dryad.134418/carabid%20traits%20final.txt) 
  3: closing unused connection 4 (https://v1.datadryad.org/bitstream/handle/10255/dryad.134418/carabid%20traits%20final.txt) 
  Execution halted