Running ‘testthat.R’ [22s/32s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(envalysis)
  > 
  > test_check("envalysis")
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  number of blank values <= 1; LOD is estimated from the calibration curve
  number of blank values <= 1; LOD is estimated from the calibration curve
  number of blank values <= 1; LOD is estimated from the calibration curve
  Error in stats::uniroot(rootfun, interval = c(lower, upper), object = object,  : 
    f() values at end points not of opposite sign
  Error in stats::uniroot(rootfun, interval = c(lower, upper), object = object,  : 
    f() values at end points not of opposite sign
  Saving _problems/test-calibration-159.R
  Loading required package: MASS
  
  'drc' has been loaded.
  
  Please cite R and 'drc' if used for a publication,
  for references type 'citation()' and 'citation('drc')'.
  
  
  Attaching package: 'drc'
  
  The following objects are masked from 'package:stats':
  
      gaussian, getInitial
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 135 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-calibration.R:81:1', 'test-texture.R:62:1',
    'test-weight_select.R:13:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-calibration.R:154:3'): batch calibration works as expected ─────
  Error in ``[.data.table`(dt$seq, , `:=`(`Calc Conc`, inv_predict(calibration(Area ~ `Spec Conc`, .SD[Type == "Standard"]), Area, below_lod = 0)), by = .(Compound, Batch))`: attempt access index 6/6 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-calibration.R:154:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─testthat::expect_warning(...)
    8. │ └─testthat:::expect_condition_matching_(...)
    9. │   └─testthat:::quasi_capture(...)
   10. │     ├─testthat (local) .capture(...)
   11. │     │ └─base::withCallingHandlers(...)
   12. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   13. ├─testthat::expect_warning(...)
   14. │ └─testthat:::expect_condition_matching_(...)
   15. │   └─testthat:::quasi_capture(...)
   16. │     ├─testthat (local) .capture(...)
   17. │     │ └─base::withCallingHandlers(...)
   18. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   19. ├─testthat::expect_warning(...)
   20. │ └─testthat:::expect_condition_matching_(...)
   21. │   └─testthat:::quasi_capture(...)
   22. │     ├─testthat (local) .capture(...)
   23. │     │ └─base::withCallingHandlers(...)
   24. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   25. ├─testthat::expect_warning(...)
   26. │ └─testthat:::expect_condition_matching_(...)
   27. │   └─testthat:::quasi_capture(...)
   28. │     ├─testthat (local) .capture(...)
   29. │     │ └─base::withCallingHandlers(...)
   30. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   31. ├─testthat::expect_warning(...)
   32. │ └─testthat:::expect_condition_matching_(...)
   33. │   └─testthat:::quasi_capture(...)
   34. │     ├─testthat (local) .capture(...)
   35. │     │ └─base::withCallingHandlers(...)
   36. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   37. ├─...[]
   38. └─data.table:::`[.data.table`(...)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 135 ]
  Error:
  ! Test failures.
  Execution halted