Running 'testthat.R' [45s/51s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > ## Sys.setenv(R_TESTS="")
  > library(testthat)
  > library(sarima)
  Loading required package: FitAR
  Loading required package: lattice
  Loading required package: leaps
  Loading required package: ltsa
  Loading required package: bestglm
  Loading required package: stats4
  > 
  > test_check("sarima")
  -- 1. Error: (unknown) (@test-KalmanForecast.R#9)  -----------------------------
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. sarima::sarima(train ~ 1 | ar(3) + sar(3, 4) + sma(12, 1))
   3. Formula:::model.frame.Formula(Fo, lhs = 1, rhs = FALSE, na.action = NULL)
   5. stats::model.frame.default(...)
  
  -- 2. Error: the css method works OK for 'stationary' fits (@test-css.R#6)  ----
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. sarima::sarima(...)
   3. Formula:::model.frame.Formula(Fo, lhs = 1, rhs = FALSE, na.action = NULL)
   5. stats::model.frame.default(...)
  
  Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data,  : 
    'data' must be a data.frame, environment, or list
  Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data,  : 
    'data' must be a data.frame, environment, or list
  Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data,  : 
    'data' must be a data.frame, environment, or list
  -- 3. Error: the two-stage estimation method works OK (@test-css.R#138)  -------
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. sarima::sarima(...)
   3. Formula:::model.frame.Formula(Fo, lhs = 1, rhs = FALSE, na.action = NULL)
   5. stats::model.frame.default(...)
  
  An object of class "SarimaModel"
  -- 4. Error: Sarima and Arma models work ok (@test-sarima-uar.R#12)  -----------
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. sarima::sarima(...)
   3. Formula:::model.frame.Formula(Fo, lhs = 1, rhs = FALSE, na.action = NULL)
   5. stats::model.frame.default(...)
  
  -- 5. Error: sarima() works ok (@test-sarima.R#123)  ---------------------------
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. sarima::sarima(...)
   3. Formula:::model.frame.Formula(Fo, lhs = 1, rhs = FALSE, na.action = NULL)
   5. stats::model.frame.default(...)
  
  -- 6. Error: prediction from fitted sarima() works ok (@test-sarima.R#156)  ----
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. sarima::sarima(LakeHuron ~ 1 + t | ar(2), ss.method = "base")
   3. Formula:::model.frame.Formula(Fo, lhs = 1, rhs = FALSE, na.action = NULL)
   5. stats::model.frame.default(...)
  
  -- 7. Error: sarima() matches  examples with x in arimaML.R (@test-sarima_from_a
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. sarima::sarima(x ~ 0 + t | i(1), ss.method = "sarima")
   3. Formula:::model.frame.Formula(Fo, lhs = 1, rhs = FALSE, na.action = NULL)
   5. stats::model.frame.default(...)
  
  -- 8. Error: sarima() matches I(3) examples in arimaML.R (@test-sarima_from_arim
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. sarima::sarima(x. ~ 0 + .B(xr, 0) | i(3), ss.method = "sarima")
   3. Formula:::model.frame.Formula(Fo, lhs = 1, rhs = FALSE, na.action = NULL)
   5. stats::model.frame.default(...)
  
  Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data,  : 
    'data' must be a data.frame, environment, or list
  Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data,  : 
    'data' must be a data.frame, environment, or list
  == testthat results  ===========================================================
  [ OK: 131 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: (unknown) (@test-KalmanForecast.R#9) 
  2. Error: the css method works OK for 'stationary' fits (@test-css.R#6) 
  3. Error: the two-stage estimation method works OK (@test-css.R#138) 
  4. Error: Sarima and Arma models work ok (@test-sarima-uar.R#12) 
  5. Error: sarima() works ok (@test-sarima.R#123) 
  6. Error: prediction from fitted sarima() works ok (@test-sarima.R#156) 
  7. Error: sarima() matches  examples with x in arimaML.R (@test-sarima_from_arimaML.R#39) 
  8. Error: sarima() matches I(3) examples in arimaML.R (@test-sarima_from_arimaML.R#87) 
  
  Error: testthat unit tests failed
  Execution halted