Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘treestats-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: make_unbalanced_tree > ### Title: Stepwise increase the imbalance of a tree > ### Aliases: make_unbalanced_tree > > ### ** Examples > > simulated_tree <- ape::rphylo(n = 16, birth = 1, death = 0) > balanced_tree <- treestats::create_fully_balanced_tree(simulated_tree) > unbalanced_tree <- treestats::create_fully_unbalanced_tree(simulated_tree) > intermediate_tree <- make_unbalanced_tree(balanced_tree, 8) Error in loadNamespace(x) : there is no package called ‘DDD’ Calls: make_unbalanced_tree ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Check: tests, Result: ERROR Running ‘testthat.R’ [5s/5s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(treestats) # nolint keep package name non-all-lowercase, due to backwards compatibility Loading required package: Rcpp > > test_check("treestats") Failed with error: 'there is no package called 'phyloTop'' Failed with error: 'there is no package called 'phyloTop'' Failed with error: 'there is no package called 'apTreeshape'' Failed with error: 'there is no package called 'phyloTop'' Failed with error: 'there is no package called 'apTreeshape'' Failed with error: 'there is no package called 'adephylo'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'igraph'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'castor'' Failed with error: 'there is no package called 'picante'' Failed with error: 'there is no package called 'geiger'' Failed with error: 'there is no package called 'geiger'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'Matrix'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'igraph'' Failed with error: 'there is no package called 'igraph'' Failed with error: 'there is no package called 'igraph'' Failed with error: 'there is no package called 'igraph'' Failed with error: 'there is no package called 'phyloTop'' Failed with error: 'there is no package called 'igraph'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'RSpectra'' Failed with error: 'there is no package called 'igraph'' Failed with error: 'there is no package called 'picante'' Failed with error: 'there is no package called 'picante'' Failed with error: 'there is no package called 'DDD'' Failed with error: 'there is no package called 'geiger'' Failed with error: 'there is no package called 'phyloTop'' Failed with error: 'there is no package called 'picante'' Failed with error: 'there is no package called 'apTreeshape'' Failed with error: 'there is no package called 'phyloTop'' Failed with error: 'there is no package called 'phyloTop'' [ FAIL 5 | WARN 0 | SKIP 25 | PASS 585 ] ══ Skipped tests (25) ══════════════════════════════════════════════════════════ • On CRAN (6): 'test-allstats.R:4:3', 'test-brts_stats.R:4:3', 'test-colless_corr.R:33:3', 'test-colless_quad.R:33:3', 'test-rpanda.R:4:3', 'test-topology_stats.R:4:3' • empty test (18): 'test-ILnumber.R:3:1', 'test-avgLadder.R:3:1', 'test-beta.R:3:1', 'test-cherries.R:3:1', 'test-colless.R:3:1', 'test-crown_age.R:3:1', 'test-gamma.R:5:1', 'test-j.R:3:1', 'test-l2phylo.R:3:1', 'test-l2phylo.R:51:1', 'test-max_betweenness.R:51:1', 'test-max_ladder.R:3:1', 'test-minmax_laplace.R:67:1', 'test-mpd.R:3:1', 'test-pitchforks.R:3:1', 'test-psv.R:3:1', 'test-stairs.R:3:1', 'test-stairs.R:26:1' • {lintr} is not installed (1): 'test-style.R:2:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-make_unbalanced_tree.R:12:7'): usage ─────────────────────────── Error in `loadNamespace(x)`: there is no package called 'DDD' Backtrace: ▆ 1. ├─treestats::make_unbalanced_tree(...) at test-make_unbalanced_tree.R:12:7 2. │ └─treestats:::make_any(ltab_in, unbal_steps, selection_method) 3. │ └─treestats:::make_unbalanced_tree_random(ltab_in, unbal_steps) 4. └─base::loadNamespace(x) 5. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 6. └─base (local) withOneRestart(expr, restarts[[1L]]) 7. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-minmax_adj.R:27:3'): usage ───────────────────────────────────── Error in `eval(code, test_env)`: object 'focal_tree' not found Backtrace: ▆ 1. └─treestats::minmax_adj(focal_tree, use_rspectra = FALSE) at test-minmax_adj.R:27:3 2. └─treestats:::check_tree(...) ── Error ('test-nltt.R:9:3'): usage ──────────────────────────────────────────── Error in `loadNamespace(x)`: there is no package called 'nLTT' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-nltt.R:9:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-phylo2l.R:7:3'): usage ───────────────────────────────────────── Error in `loadNamespace(x)`: there is no package called 'DDD' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-phylo2l.R:7:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-treeness.R:7:3'): usage ──────────────────────────────────────── Error in `loadNamespace(x)`: there is no package called 'DDD' Backtrace: ▆ 1. └─base::loadNamespace(x) at test-treeness.R:7:3 2. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 3. └─base (local) withOneRestart(expr, restarts[[1L]]) 4. └─base (local) doWithOneRestart(return(expr), restart) [ FAIL 5 | WARN 0 | SKIP 25 | PASS 585 ] Error: Test failures Execution halted