Running ‘testthat.R’ [14s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyfast)
  > library(data.table)
  > 
  > test_check("tidyfast")
  ── 1. Error: can pivot all cols (unspecified) to long (@test-dt_pivot_longer.R#7
  there is no package called 'tidyr'
  Backtrace:
   1. dplyr::arrange(...)
   2. tidyr::pivot_longer
   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)
  
  ── 2. Error: can pivot all cols (specified) to long (@test-dt_pivot_longer.R#18)
  there is no package called 'tidyr'
  Backtrace:
   1. dplyr::arrange(...)
   2. tidyr::pivot_longer
   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)
  
  ── 3. Error: can select a single column (@test-dt_pivot_longer.R#28)  ──────────
  there is no package called 'tidyr'
  Backtrace:
   1. dplyr::arrange(tidyr::pivot_longer(df, cols = x), name, value)
   2. tidyr::pivot_longer
   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: preserves original keys (@test-dt_pivot_longer.R#41)  ─────────────
  there is no package called 'tidyr'
  Backtrace:
   1. dplyr::arrange(tidyr::pivot_longer(df, c(y, z)), name, value)
   2. tidyr::pivot_longer
   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)
  
  ── 5. Error: can drop missing values (@test-dt_pivot_longer.R#50)  ─────────────
  there is no package called 'tidyr'
  Backtrace:
   1. dplyr::arrange(...)
   2. tidyr::pivot_longer
   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)
  
  ── 6. Error: works with select helpers (@test-dt_pivot_longer.R#77)  ───────────
  there is no package called 'tidyr'
  Backtrace:
   1. dplyr::arrange(...)
   2. tidyr::pivot_longer
   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)
  
  ── 7. Error: a single helper works outside of c() call (@test-dt_pivot_longer.R#
  there is no package called 'tidyr'
  Backtrace:
   1. dplyr::arrange(...)
   2. tidyr::pivot_longer
   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: 80 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 7 ]
  1. Error: can pivot all cols (unspecified) to long (@test-dt_pivot_longer.R#7) 
  2. Error: can pivot all cols (specified) to long (@test-dt_pivot_longer.R#18) 
  3. Error: can select a single column (@test-dt_pivot_longer.R#28) 
  4. Error: preserves original keys (@test-dt_pivot_longer.R#41) 
  5. Error: can drop missing values (@test-dt_pivot_longer.R#50) 
  6. Error: works with select helpers (@test-dt_pivot_longer.R#77) 
  7. Error: a single helper works outside of c() call (@test-dt_pivot_longer.R#86) 
  
  Error: testthat unit tests failed
  Execution halted