Running 'spelling.R' [0s]
  Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(SynthTools)
  > 
  > test_check("SynthTools")
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
  [1] "Variable classification identical:  YES"
  [1] "factor variables: 6"
  [1] "integer variables: 1"
  [1] "Number of factor levels are the same:  YES"
  [1] "All factor levels are identical:  YES"
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
  [1] "Variable classification identical:  YES"
  [1] "factor variables: 6"
  [1] "integer variables: 1"
  [1] "Number of factor levels are the same:  YES"
  [1] "All factor levels are identical:  YES"
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
  [1] "Variable classification identical:  YES"
  [1] "factor variables: 6"
  [1] "integer variables: 1"
  [1] "Number of factor levels are the same:  YES"
  [1] "All factor levels are identical:  YES"
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
    Variable:  Observed class:  New class: 
  1        age          integer      factor
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
  [1] "Variable classification identical:  YES"
  [1] "factor variables: 6"
  [1] "integer variables: 1"
  [1] "Number of factor levels are the same:  YES"
  [1] "All factor levels are identical:  YES"
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
  [1] "Variable classification identical:  YES"
  [1] "factor variables: 6"
  [1] "integer variables: 1"
  [1] "Number of factor levels are the same:  YES"
  [1] "All factor levels are identical:  YES"
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
  [1] "Variable classification identical:  YES"
  [1] "factor variables: 6"
  [1] "integer variables: 1"
  [1] "Factor with different levels: sex"
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
  [1] "Variable classification identical:  YES"
  [1] "factor variables: 6"
  [1] "integer variables: 1"
  [1] "Number of factor levels are the same:  YES"
  [1] "All factor levels are identical:  YES"
  [1] "Observed and synthesized data sets have the same dimensions:  YES"
  [1] "Variable order the same:  YES"
  [1] "Variable classification identical:  YES"
  [1] "factor variables: 6"
  [1] "integer variables: 1"
  [1] "Number of factor levels are the same:  YES"
  [1] "race and sex OK"
  [1] "Observed data:"
     
        1   2
    1 430 450
    2  27  31
    6  14  17
    8   6   7
    9  10   8
  [1] "New data:"
     
        1   2
    1 422 458
    2  26  32
    6  14  17
    8   5   8
    9  13   5
  [1] "95% Confidence Intervals and Standard Errors of Multiple Imputation for sex"
   Response   Obs Lower Upper    SE In.CI.
          1 0.487 0.413 0.552 0.036    YES
          2 0.513 0.448 0.587 0.036    YES
  [1] "95% Confidence Intervals and Standard Errors of Multiple Imputation for sex"
   Response   Obs Lower Upper    SE In.CI.
          1 0.487 0.413 0.552 0.036    YES
          2 0.513 0.448 0.587 0.036    YES
  [1] "Overall perturbation rate: 0.191"
  -- 1. Error: Perturbation rates are properly output into list (@test-pertRates.R
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. SynthTools::pertRates(...)
    2. base::data.frame(obs_data != new_data)
   10. dplyr::select(., imp_vars)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::library.dynam(lib, package, package.lib)
  
  [1] "Overall perturbation rate: 0.191"
  -- 2. Error: Variables are put in descending order of perturbation rate if reque
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. SynthTools::pertRates(...)
    2. base::data.frame(obs_data != new_data)
   10. dplyr::select(., imp_vars)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 31 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: Perturbation rates are properly output into list (@test-pertRates.R#7) 
  2. Error: Variables are put in descending order of perturbation rate if requested (@test-pertRates.R#14) 
  
  Error: testthat unit tests failed
  Execution halted