Running ‘testthat.R’ [119s/132s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(baggr)
  Loading required package: Rcpp
  This is baggr; see vignette('baggr') for tutorial, ?baggr for basic help.
  For execution on a local, multicore CPU with excess RAM call:
  options(mc.cores = parallel::detectCores())
  > 
  > test_check("baggr")
  
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=========                                                             |  12%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |==========================                                            |  38%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |============================================                          |  62%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |=============================================================         |  88%
    |                                                                            
    |======================================================================| 100%
  Model type: Rubin model with aggregate data 
  Pooling of effects: partial 
  
  Aggregate treatment effect (on mean):
  Hypermean (tau) =  -0.014 with 95% interval -1.053 to 0.902 
  Hyper-SD (sigma_tau) = 0.830 with 95% interval 0.066 to 2.493 
  Total pooling (1 - I^2) = 0.66 with 95% interval 0.14 to 1.00 
  
  Error in `[.data.frame`(test_data, , covariates, drop = FALSE) : 
    undefined columns selected
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_binary.R:107:3): Plotting and printing works ──────────────────
  forest_plot(bg5_n) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_binary.R:108:3): Plotting and printing works ──────────────────
  forest_plot(bg5_p) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_binary.R:109:3): Plotting and printing works ──────────────────
  forest_plot(bg5_f) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_binary.R:110:3): Plotting and printing works ──────────────────
  forest_plot(bg5_f, graph.pos = 1) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_mutau.R:115:3): Plotting works ────────────────────────────────
  forest_plot(bg5_n) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_mutau.R:116:3): Plotting works ────────────────────────────────
  forest_plot(bg5_p) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_mutau.R:117:3): Plotting works ────────────────────────────────
  forest_plot(bg5_f) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_rubin.R:146:3): Forest plots for Rubin model ──────────────────
  forest_plot(bg5_n) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_rubin.R:147:3): Forest plots for Rubin model ──────────────────
  forest_plot(bg5_p) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_rubin.R:148:3): Forest plots for Rubin model ──────────────────
  forest_plot(bg5_p, show = "posterior") inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_rubin.R:149:3): Forest plots for Rubin model ──────────────────
  forest_plot(bg5_p, show = "both") inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_rubin.R:150:3): Forest plots for Rubin model ──────────────────
  forest_plot(bg5_f) inherits from `'gforge_forestplot'` not `'character'`.
  ── Failure (test_rubin.R:151:3): Forest plots for Rubin model ──────────────────
  forest_plot(bg5_f, graph.pos = 1) inherits from `'gforge_forestplot'` not `'character'`.
  
  [ FAIL 13 | WARN 2 | SKIP 5 | PASS 403 ]
  Error: Test failures
  Execution halted