Running ‘testthat.R’ [63s/77s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > rm(list=ls())
  > library(testthat)
  > library(caret)
  Loading required package: lattice
  Loading required package: ggplot2
  > library(metaforest)
  Loading required package: metafor
  Loading required package: Matrix
  Loading 'metafor' package (version 2.4-0). For an overview 
  and introduction to the package please type: help(metafor).
  Loading required package: ranger
  Loading required package: data.table
  > test_check("metaforest")
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
  Error: mtry can not be larger than number of variables in data. Ranger will EXIT now.
     whichweights mtry min.node.size
  13 fixed-effect    2             1
  ── 1. Error: (unknown) (@test-s4.R#82)  ────────────────────────────────────────
  there is no package called 'digest'
  Backtrace:
    1. metaforest::PartialDependence(final)
    2. metaforest:::PartialDependence.MetaForest(final)
    3. metaforest:::merge_plots(plots)
    6. ggplot2::ggplotGrob(plots[[x]] + theme(axis.title.y = element_blank()))
    8. ggplot2:::ggplot_gtable.ggplot_built(ggplot_build(x))
    9. layout$setup_panel_guides(plot$guides, plot$layers, plot$mapping)
   10. ggplot2:::f(..., self = self)
   11. base::lapply(...)
   12. ggplot2:::FUN(X[[i]], ...)
   13. ggplot2:::f(..., self = self)
       ...
   15. ggplot2:::FUN(X[[i]], ...)
   17. ggplot2:::guide_train.axis(guide, panel_params[[aesthetic]])
   18. digest::digest
   19. base::getExportedValue(pkg, name)
   20. base::asNamespace(ns)
   21. base::getNamespace(ns)
   22. base::loadNamespace(name)
   23. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   24. base:::withOneRestart(expr, restarts[[1L]])
   25. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 17 | SKIPPED: 0 | WARNINGS: 74 | FAILED: 1 ]
  1. Error: (unknown) (@test-s4.R#82) 
  
  Error: testthat unit tests failed
  Execution halted