Running ‘testthat.R’ [74s/76s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > if(require(testthat))
  +   test_check("forecast")
  Loading required package: testthat
  Loading required package: forecast
  1. Error: tests for is.mforecast() (@test-mforecast.R#13) ----------------------
  undefined columns selected
  1: forecast(fit, newdata = data.frame(v_x = 30)) at testthat/test-mforecast.R:13
  2: forecast.mlm(fit, newdata = data.frame(v_x = 30))
  3: eval(cl)
  4: eval(cl)
  5: forecast.lm(object = mlmsplit(object, index = i), newdata = data.frame(v_x = 30))
  6: getResponse(object)
  7: getResponse.lm(object)
  8: model.frame(object$model)[, responsevar]
  9: `[.data.frame`(model.frame(object$model), , responsevar)
  10: stop("undefined columns selected")
  
  2. Error: tests for forecast.mlm() (@test-mforecast.R#37) ----------------------
  undefined columns selected
  1: forecast(fit, newdata = data.frame(v_x = 30)) at testthat/test-mforecast.R:37
  2: forecast.mlm(fit, newdata = data.frame(v_x = 30))
  3: eval(cl)
  4: eval(cl)
  5: forecast.lm(object = mlmsplit(object, index = i), newdata = data.frame(v_x = 30))
  6: getResponse(object)
  7: getResponse.lm(object)
  8: model.frame(object$model)[, responsevar]
  9: `[.data.frame`(model.frame(object$model), , responsevar)
  10: stop("undefined columns selected")
  
  3. Error: tests for print.mforecast() (@test-mforecast.R#54) -------------------
  undefined columns selected
  1: forecast(fit, newdata = data.frame(v_x = 30)) at testthat/test-mforecast.R:54
  2: forecast.mlm(fit, newdata = data.frame(v_x = 30))
  3: eval(cl)
  4: eval(cl)
  5: forecast.lm(object = mlmsplit(object, index = i), newdata = data.frame(v_x = 30))
  6: getResponse(object)
  7: getResponse.lm(object)
  8: model.frame(object$model)[, responsevar]
  9: `[.data.frame`(model.frame(object$model), , responsevar)
  10: stop("undefined columns selected")
  
  4. Error: tests for plot.mforecast() (@test-mforecast.R#61) --------------------
  undefined columns selected
  1: forecast(fit, newdata = data.frame(v_x = 30)) at testthat/test-mforecast.R:61
  2: forecast.mlm(fit, newdata = data.frame(v_x = 30))
  3: eval(cl)
  4: eval(cl)
  5: forecast.lm(object = mlmsplit(object, index = i), newdata = data.frame(v_x = 30))
  6: getResponse(object)
  7: getResponse.lm(object)
  8: model.frame(object$model)[, responsevar]
  9: `[.data.frame`(model.frame(object$model), , responsevar)
  10: stop("undefined columns selected")
  
  testthat results ================================================================
  OK: 446 SKIPPED: 1 FAILED: 4
  1. Error: tests for is.mforecast() (@test-mforecast.R#13) 
  2. Error: tests for forecast.mlm() (@test-mforecast.R#37) 
  3. Error: tests for print.mforecast() (@test-mforecast.R#54) 
  4. Error: tests for plot.mforecast() (@test-mforecast.R#61) 
  
  Error: testthat unit tests failed
  Execution halted