Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(datafsm)
  > 
  > test_check("datafsm")
  -- 1. Error: evolve_model() returns correct type of object (@test_mainfunc.R#7) 
  there is no package called 'stringi'
  Backtrace:
    1. datafsm::evolve_model(cdata, cv = FALSE)
    2. caret::nearZeroVar
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    8. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   11. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   13. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   15. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   16. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   17. base:::withOneRestart(expr, restarts[[1L]])
   18. base:::doWithOneRestart(return(expr), restart)
  
  -- 2. Error: evolve_model() returns warnings and errors (@test_mainfunc.R#14)  -
  there is no package called 'stringi'
  Backtrace:
    1. testthat::expect_warning(evolve_model(cdata, cv = FALSE), "did not supply a data.frame")
    6. datafsm::evolve_model(cdata, cv = FALSE)
    7. caret::nearZeroVar
    8. base::getExportedValue(pkg, name)
    9. base::asNamespace(ns)
   10. base::getNamespace(ns)
   11. base::loadNamespace(name)
   13. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   16. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   18. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   20. base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   21. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   22. base:::withOneRestart(expr, restarts[[1L]])
   23. base:::doWithOneRestart(return(expr), restart)
  
  == testthat results  ===========================================================
  [ OK: 3 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: evolve_model() returns correct type of object (@test_mainfunc.R#7) 
  2. Error: evolve_model() returns warnings and errors (@test_mainfunc.R#14) 
  
  Error: testthat unit tests failed
  Execution halted