Running ‘testthat.R’ [9s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > 
  > library(testthat)
  > library(mixdir)
  > 
  > test_check("mixdir")
  ── 1. Error: VI works for simple models (@test-mixdir.R#7)  ────────────────────
  there is no package called 'tibble'
  1: create_data() at testthat/test-mixdir.R:7
  2: tibble::tribble at /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/mixdir.Rcheck/tests/testthat/helper.R:3
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 2. Error: VI can handle missign values (@test-mixdir.R#22)  ─────────────────
  there is no package called 'tibble'
  1: create_data() at testthat/test-mixdir.R:22
  2: tibble::tribble at /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/mixdir.Rcheck/tests/testthat/helper.R:3
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 3. Error: VI DP works for simple models (@test-mixdir.R#51)  ────────────────
  there is no package called 'tibble'
  1: create_data() at testthat/test-mixdir.R:51
  2: tibble::tribble at /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/mixdir.Rcheck/tests/testthat/helper.R:3
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 4. Error: VI DP can handle missing values (@test-mixdir.R#65)  ──────────────
  there is no package called 'tibble'
  1: create_data() at testthat/test-mixdir.R:65
  2: tibble::tribble at /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/mixdir.Rcheck/tests/testthat/helper.R:3
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 5. Error: mixdir can handle missing values as category (@test-mixdir.R#81)  ─
  there is no package called 'tibble'
  1: create_data() at testthat/test-mixdir.R:81
  2: tibble::tribble at /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/mixdir.Rcheck/tests/testthat/helper.R:3
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 6. Error: mixdir repetitions selects the best run (@test-mixdir.R#96)  ──────
  there is no package called 'tibble'
  1: create_data() at testthat/test-mixdir.R:96
  2: tibble::tribble at /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/mixdir.Rcheck/tests/testthat/helper.R:3
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 7. Error: expec_log_xij works (@test_cpp.R#18)  ─────────────────────────────
  there is no package called 'purrr'
  1: as.matrix(purrr::map_df(purrr::map_df(X, as.factor), as.numeric)) at testthat/test_cpp.R:18
  2: purrr::map_df
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 8. Error: zeta update works (@test_cpp.R#42)  ───────────────────────────────
  there is no package called 'purrr'
  1: as.matrix(purrr::map_df(purrr::map_df(X, as.factor), as.numeric)) at testthat/test_cpp.R:42
  2: purrr::map_df
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 9. Error: zeta update works for dp (@test_cpp.R#83)  ────────────────────────
  there is no package called 'purrr'
  1: as.matrix(purrr::map_df(purrr::map_df(X, as.factor), as.numeric)) at testthat/test_cpp.R:83
  2: purrr::map_df
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 23 SKIPPED: 2 FAILED: 9
  1. Error: VI works for simple models (@test-mixdir.R#7) 
  2. Error: VI can handle missign values (@test-mixdir.R#22) 
  3. Error: VI DP works for simple models (@test-mixdir.R#51) 
  4. Error: VI DP can handle missing values (@test-mixdir.R#65) 
  5. Error: mixdir can handle missing values as category (@test-mixdir.R#81) 
  6. Error: mixdir repetitions selects the best run (@test-mixdir.R#96) 
  7. Error: expec_log_xij works (@test_cpp.R#18) 
  8. Error: zeta update works (@test_cpp.R#42) 
  9. Error: zeta update works for dp (@test_cpp.R#83) 
  
  Error: testthat unit tests failed
  Execution halted