Package: bonsaiforest Check: tests New result: ERROR Running ‘testthat.R’ [37s/31s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(bonsaiforest) Attaching package: 'bonsaiforest' The following object is masked from 'package:testthat': compare > > test_check("bonsaiforest") [ FAIL 1 | WARN 3 | SKIP 12 | PASS 68 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • On CRAN (12): 'test-horseshoe.R:58:3', 'test-plot.R:3:3', 'test-plot.R:8:3', 'test-plot.R:13:3', 'test-plot.R:18:3', 'test-print.R:3:3', 'test-print.R:8:3', 'test-print.R:13:3', 'test-print.R:18:3', 'test-simulation.R:16:3', 'test-simulation.R:23:3', 'test-simulation.R:30:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-horseshoe.R:2:3'): horseshoe outputs the right elements for survival ── Error in `brms::brmsfamily("cox", bhaz = bhaz)`: unused argument (bhaz = bhaz) Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-horseshoe.R:2:3 2. │ └─base::withCallingHandlers(...) 3. └─bonsaiforest::horseshoe(...) [ FAIL 1 | WARN 3 | SKIP 12 | PASS 68 ] Error: Test failures Execution halted Package: broom.mixed Check: tests New result: ERROR Running ‘test-all.R’ [37s/37s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > Sys.setenv("R_TESTS" = "") > library(testthat) > test_check("broom.mixed") Loading required package: broom.mixed GAMLSS-RS iteration 1: Global Deviance = 4771.925 GAMLSS-CG iteration 1: Global Deviance = 4771.013 GAMLSS-CG iteration 2: Global Deviance = 4770.994 GAMLSS-CG iteration 3: Global Deviance = 4770.994 [ FAIL 1 | WARN 5 | SKIP 1 | PASS 237 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-rstanarm.R:35:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-alltibbles.R:57:21'): (code run outside of `test_that()`) ────── Error in `.requirePackage(package)`: unable to find required package 'rstan' Backtrace: ▆ 1. └─broom.mixed (local) testf("glance", z) at test-alltibbles.R:62:13 2. ├─testthat::expect_is(get(fn_str)(obj), "tbl_df") at test-alltibbles.R:57:21 3. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 4. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 5. ├─get(fn_str)(obj) 6. └─broom.mixed:::glance.brmsfit(obj) 7. └─broom.mixed:::glance_stan(...) 8. ├─stats::sigma(x) 9. └─broom.mixed:::sigma.brmsfit(x) 10. ├─"sigma" %in% brms::variables(object) 11. ├─brms::variables(object) 12. └─brms:::variables.brmsfit(object) 13. └─methods (local) dimnames(x$fit) 14. └─methods (local) ``(``, ``, ``) 15. └─methods:::.findInheritedMethods(classes, fdef, mtable) 16. └─methods::getClass(cl1, where = where, .Force = TRUE) 17. └─methods::getClassDef(Class, where) 18. └─methods:::.requirePackage(package) [ FAIL 1 | WARN 5 | SKIP 1 | PASS 237 ] Error: Test failures Execution halted Package: pollimetry Check: examples New result: ERROR Running examples in ‘pollimetry-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: bodysize > ### Title: Converts the intertegular distance (IT) and co-variates to body > ### size in dry weight (mg) for bees or hoverflies. > ### Aliases: bodysize > > ### ** Examples > > example=cbind.data.frame(IT=c(1.3,2.3), + Sex=c("Female","Male"), + Subfamily=c("Syrphinae","Eristalinae"), + Region=c("Australasia","Europe"), + Species=c("Sphaerophoria_macrogaster","Myathropa_florea")) > bodysize(x=example,taxa="hov",type="taxo") Loading required namespace: pollimetrydata Failed with error: ‘there is no package called ‘pollimetrydata’’ Downloading data from: https://github.com/liamkendall/pollimetrydata/raw/master/data/hov_tax_mod.rdata SHA-1 hash of the downloaded data file is: 8fabe989dfed6c91d8e5834ad224ff4865b76b7f Loading required package: rstan Loading required package: StanHeaders Error: package or namespace load failed for ‘rstan’ in .doLoadActions(where, attach): error in load action .__A__.1 for package rstan: Rcpp::loadModule(module = "class_model_base", what = TRUE, env = ns, : Unable to load module "class_model_base": attempt to apply non-function Error in .requirePackage(package) : unable to find required package ‘rstan’ Calls: bodysize ... .findInheritedMethods -> getClass -> getClassDef -> .requirePackage Execution halted