Running ‘testthat.R’ [3s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(traitdataform)
  > 
  > test_check("traitdataform")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test.columns_to_ETS.R:6:1): (code run outside of `test_that()`) ──────
  Error: duplicate 'row.names' are not allowed
  Backtrace:
       █
    1. ├─traitdataform::pulldata("carabids") test.columns_to_ETS.R:6:0
    2. │ ├─base::tryCatch(...)
    3. │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    4. │ │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    5. │ │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    6. │ ├─base::source(system.file("extdata", paste0(x, ".R"), package = "traitdataform"))
    7. │ └─base::source(system.file("extdata", paste0(x, ".R"), package = "traitdataform"))
    8. │   ├─base::withVisible(eval(ei, envir))
    9. │   └─base::eval(ei, envir)
   10. │     └─base::eval(ei, envir)
   11. └─utils::read.delim(...)
   12.   └─utils::read.table(...)
  ── Error (test.map_gbif_taxonomy.R:6:1): (code run outside of `test_that()`) ───
  Error: duplicate 'row.names' are not allowed
  Backtrace:
       █
    1. ├─traitdataform::pulldata("carabids") test.map_gbif_taxonomy.R:6:0
    2. │ ├─base::tryCatch(...)
    3. │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    4. │ │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    5. │ │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    6. │ ├─base::source(system.file("extdata", paste0(x, ".R"), package = "traitdataform"))
    7. │ └─base::source(system.file("extdata", paste0(x, ".R"), package = "traitdataform"))
    8. │   ├─base::withVisible(eval(ei, envir))
    9. │   └─base::eval(ei, envir)
   10. │     └─base::eval(ei, envir)
   11. └─utils::read.delim(...)
   12.   └─utils::read.table(...)
  ── Error (test.standardize.R:6:3): mapping of taxa works ───────────────────────
  Error: duplicate 'row.names' are not allowed
  Backtrace:
       █
    1. ├─traitdataform::pulldata("carabids") test.standardize.R:6:2
    2. │ ├─base::tryCatch(...)
    3. │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    4. │ │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    5. │ │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    6. │ ├─base::source(system.file("extdata", paste0(x, ".R"), package = "traitdataform"))
    7. │ └─base::source(system.file("extdata", paste0(x, ".R"), package = "traitdataform"))
    8. │   ├─base::withVisible(eval(ei, envir))
    9. │   └─base::eval(ei, envir)
   10. │     └─base::eval(ei, envir)
   11. └─utils::read.delim(...)
   12.   └─utils::read.table(...)
  ── Error (test.standardize.R:73:3): unit conversion works ──────────────────────
  Error: duplicate 'row.names' are not allowed
  Backtrace:
       █
    1. ├─traitdataform::pulldata("carabids") test.standardize.R:73:2
    2. │ ├─base::tryCatch(...)
    3. │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
    4. │ │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
    5. │ │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
    6. │ ├─base::source(system.file("extdata", paste0(x, ".R"), package = "traitdataform"))
    7. │ └─base::source(system.file("extdata", paste0(x, ".R"), package = "traitdataform"))
    8. │   ├─base::withVisible(eval(ei, envir))
    9. │   └─base::eval(ei, envir)
   10. │     └─base::eval(ei, envir)
   11. └─utils::read.delim(...)
   12.   └─utils::read.table(...)
  ── Error (test.standardize.R:80:3): factor level harmonization works ───────────
  Error: object 'arthropodtraits' not found
  Backtrace:
      █
   1. └─traitdataform::as.traitdata(...) test.standardize.R:80:2
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1 ]
  Error: Test failures
  Execution halted