Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(OptimClassifier)
  > 
  > test_check("OptimClassifier")
  -- 1. Error: Test CART with Australian Credit (@test-OptimCART.R#5)  -----------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. OptimClassifier::Optim.CART(...)
   2. OptimClassifier:::OrderModels(SummaryTrees, "rmse", desc = FALSE)
   4. dplyr::arrange
   5. base::getExportedValue(pkg, name)
   6. base::asNamespace(ns)
   7. base::getNamespace(ns)
   8. base::loadNamespace(name)
   9. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: Test DA methods with Australian Credit (@test-OptimDA.R#4)  -------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. OptimClassifier::Optim.DA(Y ~ ., AustralianCredit, p = 0.8, seed = 2018)
   2. OptimClassifier:::OrderModels(summary_models, criteria)
   4. dplyr::arrange
   5. base::getExportedValue(pkg, name)
   6. base::asNamespace(ns)
   7. base::getNamespace(ns)
   8. base::loadNamespace(name)
   9. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: Test GLM with Australian Credit (@test-OptimGLM.R#5)  -------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. OptimClassifier::Optim.GLM(...)
   2. OptimClassifier:::OrderThresholds(res[[4]], criteria)
   3. dplyr::arrange
   4. base::getExportedValue(pkg, name)
   5. base::asNamespace(ns)
   6. base::getNamespace(ns)
   7. base::loadNamespace(name)
   8. base::library.dynam(lib, package, package.lib)
  
  -- 4. Error: Test LM with Australian Credit (@test-OptimLM.R#5)  ---------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. OptimClassifier::Optim.LM(...)
   2. OptimClassifier:::OrderThresholds(thresholds_tested[[i]], criteria)
   3. dplyr::arrange
   4. base::getExportedValue(pkg, name)
   5. base::asNamespace(ns)
   6. base::getNamespace(ns)
   7. base::loadNamespace(name)
   8. base::library.dynam(lib, package, package.lib)
  
  -- 5. Error: Test LMM with Australian Credit (@test-OptimLMM.R#5)  -------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. OptimClassifier::Optim.LMM("Y", AustralianCredit, p = 0.85, seed = 2018)
   2. OptimClassifier:::OrderThresholds(thresholds_tested[[k]], criteria)
   3. dplyr::arrange
   4. base::getExportedValue(pkg, name)
   5. base::asNamespace(ns)
   6. base::getNamespace(ns)
   7. base::loadNamespace(name)
   8. base::library.dynam(lib, package, package.lib)
  
  Warning: Thresholds' criteria not selected. The success rate is defined as the default. 
   
  # weights:  37
  initial  value 314.113022 
  iter  10 value 305.860086
  iter  20 value 305.236595
  iter  30 value 305.199531
  final  value 305.199440 
  converged
  -- 6. Error: Test example with Australian Credit Dataset for NN (@test-OptimNN.R
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. OptimClassifier::Optim.NN(...)
   2. OptimClassifier:::OrderThresholds(thresholds_tested[[k]], criteria)
   3. dplyr::arrange
   4. base::getExportedValue(pkg, name)
   5. base::asNamespace(ns)
   6. base::getNamespace(ns)
   7. base::loadNamespace(name)
   8. base::library.dynam(lib, package, package.lib)
  
  -- 7. Error: Test SVM with Australian Credit (@test-OptimSVM.R#4)  -------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. OptimClassifier::Optim.SVM(Y ~ ., AustralianCredit, p = 55, seed = 2018)
   2. OptimClassifier:::OrderThresholds(thresholds_tested[[k]], criteria)
   3. dplyr::arrange
   4. base::getExportedValue(pkg, name)
   5. base::asNamespace(ns)
   6. base::getNamespace(ns)
   7. base::loadNamespace(name)
   8. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 5 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: Test CART with Australian Credit (@test-OptimCART.R#5) 
  2. Error: Test DA methods with Australian Credit (@test-OptimDA.R#4) 
  3. Error: Test GLM with Australian Credit (@test-OptimGLM.R#5) 
  4. Error: Test LM with Australian Credit (@test-OptimLM.R#5) 
  5. Error: Test LMM with Australian Credit (@test-OptimLMM.R#5) 
  6. Error: Test example with Australian Credit Dataset for NN (@test-OptimNN.R#4) 
  7. Error: Test SVM with Australian Credit (@test-OptimSVM.R#4) 
  
  Error: testthat unit tests failed
  Execution halted