Running 'test-all.R' [40s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > library(testthat)
  > 
  > test_check('ggfortify')
  Loading required package: ggfortify
  Loading required package: ggplot2
  initial  value 7.505733 
  final  value 7.505688 
  converged
  Initial stress        : 0.01705
  stress after  10 iters: 0.00951, magic = 0.500
  stress after  20 iters: 0.00941, magic = 0.500
  initial  value 7.505733 
  final  value 7.505688 
  converged
  Initial stress        : 0.01705
  stress after  10 iters: 0.00951, magic = 0.500
  stress after  20 iters: 0.00941, magic = 0.500
  -- 1. Error: fortify.forecast works for AirPassengers (@test-forecast.R#4)  ----
  there is no package called 'forecast'
  1: forecast::auto.arima at testthat/test-forecast.R:4
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  -- 2. Error: fortify.arfima works for austres (@test-forecast.R#43)  -----------
  there is no package called 'forecast'
  1: ggplot2::fortify(forecast::arfima(austres)) at testthat/test-forecast.R:43
  2: forecast::arfima
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 3. Error: fortify.ets works for UKgas (@test-forecast.R#61)  ----------------
  there is no package called 'forecast'
  1: forecast::ets at testthat/test-forecast.R:61
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  -- 4. Error: fortify.bats works for UKgas (@test-forecast.R#74)  ---------------
  there is no package called 'forecast'
  1: forecast::bats at testthat/test-forecast.R:74
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  -- 5. Error: fortify.ets works for austres (@test-forecast.R#87)  --------------
  there is no package called 'forecast'
  1: forecast::ets at testthat/test-forecast.R:87
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  -- 6. Error: fortify.bats works for austres (@test-forecast.R#103)  ------------
  there is no package called 'forecast'
  1: forecast::bats at testthat/test-forecast.R:103
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  -- 7. Error: fortify.Arima works for AirPassengers (@test-stats.R#24)  ---------
  there is no package called 'forecast'
  1: ggplot2::fortify(ar(AirPassengers)) at testthat/test-stats.R:24
  2: fortify.ar(ar(AirPassengers))
  3: forecast::getResponse
  4: getExportedValue(pkg, name)
  5: asNamespace(ns)
  6: getNamespace(ns)
  7: tryCatch(loadNamespace(name), error = function(e) stop(e))
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  -- 8. Error: fortify.forecast works for AirPassengers (@test-ts.R#71)  ---------
  there is no package called 'forecast'
  1: forecast::auto.arima at testthat/test-ts.R:71
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  -- 9. Error: fortify.ets works for AirPassengers (@test-ts.R#95)  --------------
  there is no package called 'forecast'
  1: forecast::auto.arima at testthat/test-ts.R:95
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  -- 10. Error: fitted/residuals works for Arima/ar (@test-tslib.R#65)  ----------
  there is no package called 'forecast'
  1: fitted(m) at testthat/test-tslib.R:65
  2: fitted.ar(m)
  3: forecast::getResponse
  4: getExportedValue(pkg, name)
  5: asNamespace(ns)
  6: getNamespace(ns)
  7: tryCatch(loadNamespace(name), error = function(e) stop(e))
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  == testthat results  ===========================================================
  OK: 1371 SKIPPED: 9 FAILED: 10
  1.  Error: fortify.forecast works for AirPassengers (@test-forecast.R#4) 
  2.  Error: fortify.arfima works for austres (@test-forecast.R#43) 
  3.  Error: fortify.ets works for UKgas (@test-forecast.R#61) 
  4.  Error: fortify.bats works for UKgas (@test-forecast.R#74) 
  5.  Error: fortify.ets works for austres (@test-forecast.R#87) 
  6.  Error: fortify.bats works for austres (@test-forecast.R#103) 
  7.  Error: fortify.Arima works for AirPassengers (@test-stats.R#24) 
  8.  Error: fortify.forecast works for AirPassengers (@test-ts.R#71) 
  9.  Error: fortify.ets works for AirPassengers (@test-ts.R#95) 
  10. Error: fitted/residuals works for Arima/ar (@test-tslib.R#65) 
  
  Error: testthat unit tests failed
  Execution halted