Package: colleyRstats Check: tests New result: ERROR Running ‘testthat.R’ [11s/11s] 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(colleyRstats) > > test_check("colleyRstats") Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. The NPAV found a significant main effect of \Video on mental workload (\F{1}{10}{6.12}, \p{0.033}), $\eta_{p}^{2}$=0.38 [0.02, 1.00]. The NPAV found a significant interaction effect of \gesture $\times$ \eHMI on mental workload (\F{1}{10}{5.01}, \p{0.045}), $\eta_{p}^{2}$=0.33 [0.00, 1.00]. The ART found a significant interaction effect of \gesture $\times$ \eHMI on mental demand (\F{1}{10}{5.01}, \p{0.045}, $\eta_{p}^{2}$ = 0.33, 95\% CI: [0.00, 1.00]). %B: \m{-1.11}, \sd{1.31} Saving _problems/test-reporting-106.R Saving _problems/test-reporting-123.R [ FAIL 2 | WARN 1 | SKIP 0 | PASS 61 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-reporting.R:103:3'): reportDunnTest and reportDunnTestTable handle significant findings ── Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' Backtrace: ▆ 1. ├─FSA::dunnTest(Sepal.Length ~ Species, data = iris, method = "holm") at test-reporting.R:103:3 2. └─FSA:::dunnTest.formula(Sepal.Length ~ Species, data = iris, method = "holm") 3. └─FSA:::dunnTest.default(...) ── Failure ('test-reporting.R:120:3'): reportDunnTestTable can compute the Dunn test internally ── Expected `reportDunnTestTable(d = NULL, data = iris, iv = "Species", dv = "Sepal.Length")` not to throw any errors. Actually got a with message: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-reporting.R:120:3 2. │ └─testthat:::expect_condition_matching_(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─colleyRstats::reportDunnTestTable(...) 8. ├─FSA::dunnTest(as.formula(paste(dv, "~", iv)), data = data, method = "holm") 9. └─FSA:::dunnTest.formula(...) 10. └─FSA:::dunnTest.default(...) [ FAIL 2 | WARN 1 | SKIP 0 | PASS 61 ] Error: ! Test failures. Execution halted Package: FSA Check: dependencies in R code New result: WARNING Missing or unexported object: ‘dunn.test::p.adjustment.methods’ Package: FSA Check: examples New result: ERROR Running examples in ‘FSA-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: dunnTest > ### Title: Dunn's Kruskal-Wallis Multiple Comparisons. > ### Aliases: dunnTest dunnTest.default dunnTest.formula print.dunnTest > > ### ** Examples > > ## pH in four ponds data from Zar (2010) > ponds <- data.frame(pond=as.factor(rep(1:4,each=8)), + pH=c(7.68,7.69,7.70,7.70,7.72,7.73,7.73,7.76, + 7.71,7.73,7.74,7.74,7.78,7.78,7.80,7.81, + 7.74,7.75,7.77,7.78,7.80,7.81,7.84,NA, + 7.71,7.71,7.74,7.79,7.81,7.85,7.87,7.91)) > ponds2 <- ponds[complete.cases(ponds),] > > # non-formula usage (default "holm" method) > dunnTest(ponds2$pH,ponds2$pond) Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' Execution halted Package: FSA Check: tests New result: ERROR Running ‘testthat.R’ [33s/33s] 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 > > suppressPackageStartupMessages(library(testthat)) > suppressPackageStartupMessages(library(FSA)) > > # packages used in tests (load here instead of in individual files) > suppressPackageStartupMessages(library(FSAdata)) > suppressPackageStartupMessages(library(fishmethods)) > #suppressPackageStartupMessages(library(DescTools)) > suppressPackageStartupMessages(library(dunn.test)) > suppressPackageStartupMessages(library(lmtest)) > suppressPackageStartupMessages(library(nlme)) > #suppressPackageStartupMessages(library(psych)) > #suppressPackageStartupMessages(library(tibble)) > > # Test the package > test_check("FSA") Saving _problems/testthat_dunnTest-19.R Saving _problems/testthat_dunnTest-36.R Saving _problems/testthat_dunnTest-59.R Saving _problems/testthat_dunnTest-69.R Saving _problems/testthat_dunnTest-80.R Saving _problems/testthat_dunnTest-114.R Saving _problems/testthat_dunnTest-134.R [ FAIL 7 | WARN 1 | SKIP 0 | PASS 3936 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('testthat_dunnTest.R:19:3'): dunnTest() error and warning messages ─── Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' Backtrace: ▆ 1. ├─testthat::expect_error(dunnTest(ponds$pond, ponds$pH), "to a factor") at testthat_dunnTest.R:19:3 2. │ └─testthat:::expect_condition_matching_(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─FSA::dunnTest(ponds$pond, ponds$pH) 8. └─FSA:::dunnTest.default(ponds$pond, ponds$pH) ── Error ('testthat_dunnTest.R:36:3'): dunnTest() output ─────────────────────── Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' ── Error ('testthat_dunnTest.R:59:3'): Check dunnTest() output labels ────────── Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' Backtrace: ▆ 1. ├─FSA::dunnTest(pH ~ fpond, data = subset(ponds, pond != 3)) at testthat_dunnTest.R:59:3 2. └─FSA:::dunnTest.formula(...) 3. └─FSA:::dunnTest.default(...) ── Error ('testthat_dunnTest.R:69:3'): dunnTest matches UnitStat results ─────── Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' Backtrace: ▆ 1. ├─FSA::dunnTest(pH ~ fpond, data = ponds, method = "bonferroni") at testthat_dunnTest.R:69:3 2. └─FSA:::dunnTest.formula(pH ~ fpond, data = ponds, method = "bonferroni") 3. └─FSA:::dunnTest.default(...) ── Error ('testthat_dunnTest.R:75:3'): dunnTest matches dunn.test results for ponds data ── Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' ── Error ('testthat_dunnTest.R:108:3'): dunnTest matches dunn.test results for homecare data ── Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' ── Error ('testthat_dunnTest.R:128:3'): dunnTest matches dunn.test results for airquality data ── Error: 'p.adjustment.methods' is not an exported object from 'namespace:dunn.test' [ FAIL 7 | WARN 1 | SKIP 0 | PASS 3936 ] Error: ! Test failures. Execution halted