Running 'testthat.R' [37s/29s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(metR)
  > # library(vdiffr)
  > 
  > test_check("metR")
  -- 1. Error: Derivative works (@test-derivate.R#57)  ---------------------------
  'data' must be a data.frame, environment, or list
  Backtrace:
    1. testthat::expect_equal(...)
    4. metR::Derivate(x ~ y, cyclical = FALSE)
    9. Formula:::model.frame.Formula(formula, data = data, na.action = NULL)
   11. stats::model.frame.default(...)
  
  -- 2. Error: Derivative fills edges (@test-derivate.R#74)  ---------------------
  'data' must be a data.frame, environment, or list
  Backtrace:
    1. testthat::expect_equal(...)
    4. metR::Derivate(y ~ x, order = 3, cyclical = FALSE, fill = TRUE)
    9. Formula:::model.frame.Formula(formula, data = data, na.action = NULL)
   11. stats::model.frame.default(...)
  
  -- 3. Error: EOF works inside data.table (@test-eof.R#29)  ---------------------
  'data' must be a data.frame, environment, or list
  Backtrace:
    1. testthat::expect_identical(...)
    5. data.table:::`[.data.table`(...)
    6. [ base::eval(...) ] with 1 more call
    8. metR::EOF(gh ~ lon + lat | date)
   13. Formula:::model.frame.Formula(formula, data = data)
   15. stats::model.frame.default(...)
  
  -- 4. Error: (unknown) (@test-imputeeof.R#14)  ---------------------------------
  'data' must be a data.frame, environment, or list
  Backtrace:
    1. ...[]
    2. data.table:::`[.data.table`(...)
    3. [ base::eval(...) ] with 1 more call
    5. metR::ImputeEOF(gh.gap ~ lat + lon | date, max.eof = 5, max.iter = 2000)
   10. Formula:::model.frame.Formula(formula, data = data, na.action = NULL)
   12. stats::model.frame.default(...)
  
  -- 5. Error: (unknown) (@test-vis-streamline.R#9)  -----------------------------
  'data' must be a data.frame, environment, or list
  Backtrace:
    1. geo[, `:=`(c("u", "v"), GeostrophicWind(gh, lon, lat))]
    2. data.table:::`[.data.table`(...)
    3. [ base::eval(...) ] with 1 more call
    5. metR::GeostrophicWind(gh, lon, lat)
    6. metR::Derivate(...)
   11. Formula:::model.frame.Formula(formula, data = data, na.action = NULL)
   13. stats::model.frame.default(...)
  
  == testthat results  ===========================================================
  [ OK: 115 | SKIPPED: 11 | WARNINGS: 38 | FAILED: 5 ]
  1. Error: Derivative works (@test-derivate.R#57) 
  2. Error: Derivative fills edges (@test-derivate.R#74) 
  3. Error: EOF works inside data.table (@test-eof.R#29) 
  4. Error: (unknown) (@test-imputeeof.R#14) 
  5. Error: (unknown) (@test-vis-streamline.R#9) 
  
  Error: testthat unit tests failed
  Execution halted