Running 'testthat.R' [8s/10s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ezplot)
  > library(tsibble)
  > 
  > test_check("ezplot")
  -- 1. Error: pr_plot (@test-classification_plot.R#8)  --------------------------
  there is no package called 'tidyr'
  Backtrace:
    1. ezplot::pr_plot(df, "prediction", "label")
    2. dplyr::group_by(...)
    2. dplyr::summarize(., prec_rec = list(prec_rec(fitted, actual)))
    2. dplyr::ungroup(.)
   10. tidyr::unnest(., prec_rec)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16. base:::withOneRestart(expr, restarts[[1L]])
   17. base:::doWithOneRestart(return(expr), restart)
  
  -- 2. Error: lift_plot (@test-classification_plot.R#16)  -----------------------
  there is no package called 'tidyr'
  Backtrace:
    1. ezplot::lift_plot(df, "prediction", "label")
    2. dplyr::group_by(...)
    2. dplyr::summarize(...)
    2. dplyr::ungroup(.)
   10. tidyr::unnest(., values)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16. base:::withOneRestart(expr, restarts[[1L]])
   17. base:::doWithOneRestart(return(expr), restart)
  
  -- 3. Error: multiple y works (@test-line_plot.R#12)  --------------------------
  there is no package called 'tidyr'
  Backtrace:
   1. ezplot::line_plot(mtcars, "cyl", c("1", "am"))
   2. tidyr::gather_
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  -- 4. Error: base function works (@test-na_plot.R#5)  --------------------------
  there is no package called 'tidyr'
  Backtrace:
    1. ezplot::na_plot(airquality)
    5. tidyr::gather
    6. base::getExportedValue(pkg, name)
    7. base::asNamespace(ns)
    8. base::getNamespace(ns)
    9. base::loadNamespace(name)
   10. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11. base:::withOneRestart(expr, restarts[[1L]])
   12. base:::doWithOneRestart(return(expr), restart)
  
  -- 5. Error: base functionality works (@test-roc_plot.R#9)  --------------------
  there is no package called 'tidyr'
  Backtrace:
    1. ezplot::roc_plot(df, "yhat", "y")
    2. dplyr::group_by(...)
    2. dplyr::summarize(., roc = list(roc(fitted, actual)))
    2. dplyr::ungroup(.)
   10. tidyr::unnest(., roc)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16. base:::withOneRestart(expr, restarts[[1L]])
   17. base:::doWithOneRestart(return(expr), restart)
  
  -- 6. Error: side_plot works (@test-side_plot.R#5)  ----------------------------
  there is no package called 'tidyr'
  Backtrace:
    1. ezplot::side_plot(mtcars, "cyl", "carb", reorder = FALSE)
    9. tidyr::gather(., facet_x, y, -x)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15. base:::withOneRestart(expr, restarts[[1L]])
   16. base:::doWithOneRestart(return(expr), restart)
  
  -- 7. Error: variable_plot line geom works (@test-variable_plot.R#7)  ----------
  there is no package called 'tidyr'
  Backtrace:
   1. ezplot::variable_plot(tsibbledata::pelt, "Year", c("Lynx", "Hare"))
   2. tidyr::gather_
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  -- 8. Error: variable_plot bar geom works (@test-variable_plot.R#19)  ----------
  there is no package called 'tidyr'
  Backtrace:
   1. ezplot::variable_plot(...)
   2. tidyr::gather_
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  == testthat results  ===========================================================
  [ OK: 68 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: pr_plot (@test-classification_plot.R#8) 
  2. Error: lift_plot (@test-classification_plot.R#16) 
  3. Error: multiple y works (@test-line_plot.R#12) 
  4. Error: base function works (@test-na_plot.R#5) 
  5. Error: base functionality works (@test-roc_plot.R#9) 
  6. Error: side_plot works (@test-side_plot.R#5) 
  7. Error: variable_plot line geom works (@test-variable_plot.R#7) 
  8. Error: variable_plot bar geom works (@test-variable_plot.R#19) 
  
  Error: testthat unit tests failed
  Execution halted