Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("dat")
  To use dplyr as backend set 'options(dat.use.dplyr = TRUE)'.
  
  Attaching package: 'dat'
  
  The following object is masked from 'package:base':
  
      replace
  
  > 
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   testthat::test_check("dat")
  + }
  -- 1. Error: Basic syntax of a DataFrame (@test-DataFrame.R#17)  ---------------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
    1. dat:::WITH_DPLYR(...)
   11. dat:::`[.DataFrame`(dat, c(rep(TRUE, 9), FALSE), )
   12. memClassHandler$stripClass(x)
   13. dat:::useDplyr()
  
  -- 2. Error: make formulas (@test-makeFormulas.R#12)  --------------------------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
   1. dat:::WITH_DPLYR(...)
   6. dat::mutar(dat, FL(x ~ mean(x)), sby = "group")
   7. memClassHandler$stripClass(x)
   8. dat:::useDplyr()
  
  -- 3. Error: map  --------------------------------------------------------------
  error in evaluating the argument 'x' in selecting a method for function 'map': option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
    1. dat::map(dat %>% mutar(x ~ "x"), x ~ x + 1, is.numeric)
   14. base::.handleSimpleError(...)
   15. base:::h(simpleError(msg, call))
  
  -- 4. Error: split-apply-combine  ----------------------------------------------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
    1. dat::sac(dat, df ~ 1, "id")
    2. dat::sac(dat, df ~ 1, "id")
    4. dat::sac(x, as.function(f), by, ..., combine = combine)
    8. dat::extract(x, by)
    9. dat::mutar(x, i = TRUE, j = ind)
   10. memClassHandler$stripClass(x)
   11. dat:::useDplyr()
  
  -- 5. Error: we preserve the interface to dplyr (@test-mutar.R#18)  ------------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
    1. dat:::WITH_DPLYR(...)
   11. dat:::`[.DataFrame`(dat, "x:y")
   12. memClassHandler$stripClass(x)
   13. dat:::useDplyr()
  
  -- 6. Error: mutars by and sby (@test-mutar.R#31)  -----------------------------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
    1. dat:::WITH_DPLYR(...)
   11. dat:::`[.DataFrame`(dat, id ~ x > 4)
   12. memClassHandler$stripClass(x)
   13. dat:::useDplyr()
  
  -- 7. Error: S4 stuff (@test-mutar.R#63)  --------------------------------------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
    1. dat:::WITH_DPLYR(...)
    2. dat %<>% mutar(~x == 1)
    9. dat::mutar(., "^x$")
   10. memClassHandler$stripClass(x)
   11. dat:::useDplyr()
  
  -- 8. Error: Scoping (@test-mutar.R#88)  ---------------------------------------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
    1. dat:::WITH_DPLYR(...)
    6. dat:::fun(1)
    3. dat::DataFrame(x = val)
   11. dat::mutar(., y ~ val)
   16. memClassHandler$stripClass(x)
   17. dat:::useDplyr()
  
  -- 9. Error: Parameterized formulas (@test-mutar.R#103)  -----------------------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
   1. dat:::WITH_DPLYR(...)
   2. dat::mutar(...)
   3. memClassHandler$stripClass(x)
   4. dat:::useDplyr()
  
  -- 10. Error: Parameterized formulas with lists (@test-mutar.R#123)  -----------
  option('dat.use.dplyr') is set to TRUE but the package cannot be loaded. Set option to FALSE and use data.table or installdplyr.)
  Backtrace:
   1. dat:::WITH_DPLYR(...)
   2. dat::mutar(...)
   3. memClassHandler$stripClass(x)
   4. dat:::useDplyr()
  
  == testthat results  ===========================================================
  [ OK: 65 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 10 ]
  1.  Error: Basic syntax of a DataFrame (@test-DataFrame.R#17) 
  2.  Error: make formulas (@test-makeFormulas.R#12) 
  3.  Error: map 
  4.  Error: split-apply-combine 
  5.  Error: we preserve the interface to dplyr (@test-mutar.R#18) 
  6.  Error: mutars by and sby (@test-mutar.R#31) 
  7.  Error: S4 stuff (@test-mutar.R#63) 
  8.  Error: Scoping (@test-mutar.R#88) 
  9.  Error: Parameterized formulas (@test-mutar.R#103) 
  10. Error: Parameterized formulas with lists (@test-mutar.R#123) 
  
  Error: testthat unit tests failed
  Execution halted