Running 'reattachModule.R' [0s]
  Running 'testModule.R' [0s]
  Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("modules")
  > 
  > if (requireNamespace("testthat", quietly = TRUE))
  +   testthat::test_check("modules")
  == Skipped tests ===============================================================
  * On CRAN (5)
  
  == Warnings ====================================================================
  -- Warning (test-import.R:4:3): Import of default packages: #31 ----------------
  datasets have been moved from package 'stats' to package 'datasets'
  Backtrace:
    1. modules::module(...) test-import.R:4:2
    2. modules:::ModuleConst(match.call()$expr, topEncl, topenv(envir))
    3. modules:::evalInModule(module, expr)
    4. [ base::eval(...) ] with 1 more call
   11. modules:::importGetSelection(match.call(), pkg)
   12. modules:::importGetNamespaceExports(pkg)
   13. utils::data(package = pkg)
  -- Warning (test-import.R:17:3): Import of default packages: #31 ---------------
  datasets have been moved from package 'stats' to package 'datasets'
  Backtrace:
    1. modules::module(...) test-import.R:17:2
    2. modules:::ModuleConst(match.call()$expr, topEncl, topenv(envir))
    3. modules:::evalInModule(module, expr)
    4. [ base::eval(...) ] with 1 more call
   11. modules:::importGetSelection(match.call(), pkg)
   12. modules:::importGetNamespaceExports(pkg)
   13. utils::data(package = pkg)
  -- Warning (test-import.R:137:3): duplications on search path ------------------
  datasets have been moved from package 'stats' to package 'datasets'
  Backtrace:
    1. modules::use(tmp, attach = TRUE) test-import.R:137:2
    3. modules:::as.module.character(module, reInit = reInit, envir = where)
    4. modules:::fileAsModule(x, topEncl, ...)
    7. modules:::ModuleConst(match.call()$expr, topEncl, topenv(envir))
    8. modules:::evalInModule(module, expr)
    9. [ base::eval(...) ] with 1 more call
   11. modules::import(stats)
   12. modules:::importGetSelection(match.call(), pkg)
   13. modules:::importGetNamespaceExports(pkg)
   14. utils::data(package = pkg)
  -- Warning (test-import.R:141:3): duplications on search path ------------------
  datasets have been moved from package 'stats' to package 'datasets'
  Backtrace:
   1. modules::import(stats) test-import.R:141:2
   2. modules:::importGetSelection(match.call(), pkg)
   3. modules:::importGetNamespaceExports(pkg)
   4. utils::data(package = pkg)
  -- Warning (test-use.R:65:3): file as module -----------------------------------
  datasets have been moved from package 'stats' to package 'datasets'
  Backtrace:
    1. modules::module(...) test-use.R:65:2
    2. modules:::ModuleConst(match.call()$expr, topEncl, topenv(envir))
    3. modules:::evalInModule(module, expr)
    4. [ base::eval(...) ] with 1 more call
    6. modules::use(tmp, attach = TRUE) test-use.R:69:4
    8. modules:::as.module.character(module, reInit = reInit, envir = where)
    9. modules:::fileAsModule(x, topEncl, ...)
   12. modules:::ModuleConst(match.call()$expr, topEncl, topenv(envir))
   13. modules:::evalInModule(module, expr)
   14. [ base::eval(...) ] with 1 more call
   16. modules::import(stats)
   17. modules:::importGetSelection(match.call(), pkg)
   18. modules:::importGetNamespaceExports(pkg)
   19. utils::data(package = pkg)
  
  == Failed tests ================================================================
  -- Failure (test-import.R:28:5): Import of default packages: #31 ---------------
  fun() is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 1 | WARN 5 | SKIP 5 | PASS 108 ]
  Error: Test failures
  Execution halted