Running 'test-all.R' [81s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > ################################################################################
  > ### Unit tests for the package
  > ## Reference: http://adv-r.had.co.nz/Testing.html
  > ## See the testthat subdirectory for actual test code
  > ## Created on: 2014-06-01
  > ## Author: Kazuki Yoshida
  > ################################################################################
  > 
  > 
  > ### Run all tests
  > ################################################################################
  > library(testthat)
  > test_check("tableone")
  Loading required package: tableone
  -- 1. Failure: abnormal data are correctly detected (@test-CreateTableOne.R#71) 
  `expect_warning(...)` threw an error with unexpected message.
  Expected match: "None of the stratifying variables are present in the data frame"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(...)
   11. tableone::CreateTableOne(...)
   12. labelled::var_label
   13. base::getExportedValue(pkg, name)
   14. base::asNamespace(ns)
   15. base::getNamespace(ns)
   16. base::loadNamespace(name)
   19. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   20. base::library.dynam(lib, package, package.lib)
  
  -- 2. Error: P-values are returned for appropriate 2x2 xtabs, even with an empty
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. tableone::CreateTableOne(...)
    2. labelled::var_label
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    9. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   10. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: P-values should be NA for 1xM xtabs (@test-CreateTableOne.R#129)  -
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. tableone::CreateTableOne(...)
    2. labelled::var_label
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    9. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   10. base::library.dynam(lib, package, package.lib)
  
  -- 4. Error: (unknown) (@test-CreateTableOne.R#154)  ---------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. tableone::CreateTableOne(vars = vars, data = pbc)
    2. labelled::var_label
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    9. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   10. base::library.dynam(lib, package, package.lib)
  
  -- 5. Error: (unknown) (@test-ExtractSmd.R#35)  --------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. tableone::CreateTableOne(...)
    2. labelled::var_label
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    9. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   10. base::library.dynam(lib, package, package.lib)
  
          exp(coef) [confint] p     
  trt     1.03 [0.72, 1.47]    0.891
  age     1.03 [1.01, 1.05]    0.005
  albumin 0.26 [0.17, 0.41]   <0.001
  ascites 2.93 [1.68, 5.11]   <0.001
          exp(coef) [confint] p     
  trt     1.03 [0.72, 1.47]    0.891
  age     1.03 [1.01, 1.05]    0.005
  albumin 0.26 [0.17, 0.41]   <0.001
  ascites 2.93 [1.68, 5.11]   <0.001
              exp(coef) [confint]           p     
  (Intercept)  4.81558 [0.26099, 93.77267]   0.293
  trt          1.05879 [0.63994, 1.75622]    0.824
  age          1.03850 [1.01306, 1.06547]    0.003
  albumin      0.31078 [0.15316, 0.60752]    0.001
  ascites     19.05020 [3.69390, 349.54310]  0.005
              exp(coef) [confint]           p     
  (Intercept)  4.81558 [0.25650, 90.40912]   0.293
  trt          1.05879 [0.63975, 1.75230]    0.824
  age          1.03850 [1.01271, 1.06494]    0.003
  albumin      0.31078 [0.15640, 0.61757]    0.001
  ascites     19.05020 [2.44625, 148.35373]  0.005
              coef [confint]                        p     
  (Intercept) -1194.06334 [-2499.63435, 111.50767]   0.073
  trt           -50.39655 [-275.96185, 175.16874]    0.661
  age            -2.97371 [-14.01246, 8.06504]       0.596
  albumin       987.37770 [695.98678, 1278.76862]   <0.001
  ascites      -664.69235 [-1126.85877, -202.52592]  0.005
              coef [confint]                        p     
  (Intercept) -1194.06334 [-2494.48743, 106.36074]   0.073
  trt           -50.39655 [-275.07261, 174.27950]    0.661
  age            -2.97371 [-13.96894, 8.02152]       0.596
  albumin       987.37770 [697.13553, 1277.61988]   <0.001
  ascites      -664.69235 [-1125.03679, -204.34791]  0.005
  -- 6. Error: geepack works (@test-ShowRegTable.R#131)  -------------------------
  package or namespace load failed for 'geepack' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library(geepack)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
              coef [confint]                p     
  (Intercept)  2.70219 [2.51140, 2.89298]   <0.001
  trt         -0.36806 [-0.57681, -0.15930]  0.001
  day         -0.06464 [-0.07910, -0.05017] <0.001
  ### The lme4 version is  1.1-23 
              coef [confint]                p  
  (Intercept)  2.70219 [2.51320, 2.89118]    NA
  trt         -0.36806 [-0.57306, -0.16305]  NA
  day         -0.06464 [-0.07905, -0.05022]  NA
              coef [confint]                p     
  (Intercept)  2.70219 [2.51320, 2.89118]   <0.001
  trt         -0.36806 [-0.57306, -0.16305]  0.001
  day         -0.06464 [-0.07905, -0.05022] <0.001
              exp(coef) [confint]        p     
  (Intercept) 2.82371 [2.31045, 3.43231] <0.001
  trt         0.82903 [0.70232, 0.97777]  0.026
  day         0.96758 [0.94787, 0.98762]  0.002
  -- 7. Error: SMDs are correctly shown in print() (@test-modules-smd.R#1077)  ---
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. tableone::CreateTableOne(vars = vars, strata = strata, data = nhanes)
    2. labelled::var_label
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    9. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   10. base::library.dynam(lib, package, package.lib)
  
  -- 8. Failure: data assessment detects anomalies (@test-svyCreateTableOne.R#89) 
  `svyCreateTableOne(vars = vars, strata = c("non-existent"), data = datSvy)` threw an error with unexpected message.
  Expected match: "None of the stratifying variables are present in the data frame"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_warning(...)
   11. tableone::svyCreateTableOne(...)
   12. labelled::var_label
   13. base::getExportedValue(pkg, name)
   14. base::asNamespace(ns)
   15. base::getNamespace(ns)
   16. base::loadNamespace(name)
   19. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   20. base::library.dynam(lib, package, package.lib)
  
  -- 9. Failure: data assessment detects anomalies (@test-svyCreateTableOne.R#89) 
  `expect_error(...)` did not produce any warnings.
  
  -- 10. Error: (unknown) (@test-svyCreateTableOne.R#101)  -----------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. tableone::svyCreateTableOne(vars = vars, data = datSvy, factorVars = factorVars)
    2. labelled::var_label
    3. base::getExportedValue(pkg, name)
    4. base::asNamespace(ns)
    5. base::getNamespace(ns)
    6. base::loadNamespace(name)
    9. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   10. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 291 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 10 ]
  1.  Failure: abnormal data are correctly detected (@test-CreateTableOne.R#71) 
  2.  Error: P-values are returned for appropriate 2x2 xtabs, even with an empty factor level. (@test-CreateTableOne.R#105) 
  3.  Error: P-values should be NA for 1xM xtabs (@test-CreateTableOne.R#129) 
  4.  Error: (unknown) (@test-CreateTableOne.R#154) 
  5.  Error: (unknown) (@test-ExtractSmd.R#35) 
  6.  Error: geepack works (@test-ShowRegTable.R#131) 
  7.  Error: SMDs are correctly shown in print() (@test-modules-smd.R#1077) 
  8.  Failure: data assessment detects anomalies (@test-svyCreateTableOne.R#89) 
  9.  Failure: data assessment detects anomalies (@test-svyCreateTableOne.R#89) 
  10. Error: (unknown) (@test-svyCreateTableOne.R#101) 
  
  Error: testthat unit tests failed
  Execution halted