Running ‘testthat.R’ [116s/169s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(midasr)
  Loading required package: sandwich
  Loading required package: optimx
  Loading required package: quantreg
  Loading required package: SparseM
  
  Attaching package: 'SparseM'
  
  The following object is masked from 'package:base':
  
      backsolve
  
  > 
  > test_check("midasr")
  ── 1. Error: midas_r with start=NULL is the same as lm (@test_midasr.R#21)  ────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 2. Error: midas_r without weights gives the same summary as midas_u (@test_mi
  error in evaluating the argument 'object' in selecting a method for function 'summary': 'data' must be a data.frame, environment, or list
  Backtrace:
   1. base::summary(...)
   8. base::.handleSimpleError(...)
   9. base:::h(simpleError(msg, call))
  
  ── 3. Error: midas_u picks up data from main R environment (@test_midasr.R#56)  
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_u(y ~ trend + mls(x, 0:7, 4) + mls(z, 0:16, 12))
   2. [ base::eval(...) ] with 1 more call
   8. stats::model.frame.default(...)
  
  ── 4. Error: midas_r picks up data from main R environment (@test_midasr.R#66)  
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 5. Error: midas_r and midas_u picks data from the parent environment with mls
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 6. Error: NLS problem solution is close to the DGP (@test_midasr.R#91)  ─────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 7. Error: midas_r gives the same result for mlsd (@test_midasr.R#97)  ───────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 8. Error: Deriv tests give positive results (@test_midasr.R#108)  ───────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 9. Error: Updating Ofunction works (@test_midasr.R#116)  ────────────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 10. Error: Updating Ofunction arguments  works (@test_midasr.R#155)  ────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 11. Error: update works with start=NULL (@test_midasr.R#164)  ───────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 12. Error: updating gradient works (@test_midasr.R#174)  ────────────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 13. Error: Gradient passing works (@test_midasr.R#203)  ─────────────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 14. Error: Gradient passing works for default gradients (@test_midasr.R#213) 
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 15. Error: Gradient passing works for nls (@test_midasr.R#246)  ─────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 16. Error: Term info gathering works (@test_midasr.R#257)  ──────────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 17. Error: AR* model works (@test_midasr.R#279)  ────────────────────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 18. Error: AR* model works with gradient (@test_midasr.R#292)  ──────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 19. Error: Midas_r_plain works (@test_midasr.R#302)  ────────────────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ── 20. Error: Midas_r_plain gradient works (@test_midasr.R#314)  ───────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. midasr::midas_r(...)
   2. [ base::eval(...) ] with 1 more call
   5. stats::model.frame.default(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 73 | SKIPPED: 0 | WARNINGS: 25 | FAILED: 20 ]
  1. Error: midas_r with start=NULL is the same as lm (@test_midasr.R#21) 
  2. Error: midas_r without weights gives the same summary as midas_u (@test_midasr.R#44) 
  3. Error: midas_u picks up data from main R environment (@test_midasr.R#56) 
  4. Error: midas_r picks up data from main R environment (@test_midasr.R#66) 
  5. Error: midas_r and midas_u picks data from the parent environment with mlsd (@test_midasr.R#81) 
  6. Error: NLS problem solution is close to the DGP (@test_midasr.R#91) 
  7. Error: midas_r gives the same result for mlsd (@test_midasr.R#97) 
  8. Error: Deriv tests give positive results (@test_midasr.R#108) 
  9. Error: Updating Ofunction works (@test_midasr.R#116) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted