Running ‘testthat.R’ [177s/464s]
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
  Registered S3 methods overwritten by 'forecast':
    method             from    
    fitted.fracdiff    fracdiff
    residuals.fracdiff fracdiff
  ── 1. Error: tests for is.mforecast() (@test-mforecast.R#12)  ──────────────────
  <text>:1:8: unexpected numeric constant
  1: Series 1
             ^
  1: forecast(fit, newdata = data.frame(v_x = 30)) at testthat/test-mforecast.R:12
  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: mlmsplit(object, index = i)
  7: terms(reformulate(attr(x$terms, "term.labels"), response = yName), data = x$model)
  8: reformulate(attr(x$terms, "term.labels"), response = yName)
  9: str2code(response)
  10: parse(text = s, keep.source = FALSE)
  
  ── 2. Error: tests for mlmsplit() (@test-mforecast.R#21)  ──────────────────────
  <text>:1:8: unexpected numeric constant
  1: Series 1
             ^
  1: mlmsplit(fit, index = 1) at testthat/test-mforecast.R:21
  2: terms(reformulate(attr(x$terms, "term.labels"), response = yName), data = x$model)
  3: reformulate(attr(x$terms, "term.labels"), response = yName)
  4: str2code(response)
  5: parse(text = s, keep.source = FALSE)
  
  ── 3. Error: tests for forecast.mlm() (@test-mforecast.R#36)  ──────────────────
  <text>:1:8: unexpected numeric constant
  1: Series 1
             ^
  1: forecast(fit, newdata = data.frame(v_x = 30)) at testthat/test-mforecast.R:36
  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: mlmsplit(object, index = i)
  7: terms(reformulate(attr(x$terms, "term.labels"), response = yName), data = x$model)
  8: reformulate(attr(x$terms, "term.labels"), response = yName)
  9: str2code(response)
  10: parse(text = s, keep.source = FALSE)
  
  ── 4. Error: tests for print.mforecast() (@test-mforecast.R#53)  ───────────────
  <text>:1:8: unexpected numeric constant
  1: Series 1
             ^
  1: forecast(fit, newdata = data.frame(v_x = 30)) at testthat/test-mforecast.R:53
  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: mlmsplit(object, index = i)
  7: terms(reformulate(attr(x$terms, "term.labels"), response = yName), data = x$model)
  8: reformulate(attr(x$terms, "term.labels"), response = yName)
  9: str2code(response)
  10: parse(text = s, keep.source = FALSE)
  
  ── 5. Error: tests for plot.mforecast() (@test-mforecast.R#60)  ────────────────
  <text>:1:8: unexpected numeric constant
  1: Series 1
             ^
  1: forecast(fit, newdata = data.frame(v_x = 30)) at testthat/test-mforecast.R:60
  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: mlmsplit(object, index = i)
  7: terms(reformulate(attr(x$terms, "term.labels"), response = yName), data = x$model)
  8: reformulate(attr(x$terms, "term.labels"), response = yName)
  9: str2code(response)
  10: parse(text = s, keep.source = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 763 SKIPPED: 4 FAILED: 5
  1. Error: tests for is.mforecast() (@test-mforecast.R#12) 
  2. Error: tests for mlmsplit() (@test-mforecast.R#21) 
  3. Error: tests for forecast.mlm() (@test-mforecast.R#36) 
  4. Error: tests for print.mforecast() (@test-mforecast.R#53) 
  5. Error: tests for plot.mforecast() (@test-mforecast.R#60) 
  
  Error: testthat unit tests failed
  Execution halted