From 59523a6caf734ba3364234e8b50f0e98a47b9b1b Mon Sep 17 00:00:00 2001 From: Derek Ogle Date: Thu, 25 Jul 2019 08:18:21 -0500 Subject: [PATCH] Trying to remove asbio suggests --- DESCRIPTION | 1 - R/dunnTest.R | 2 +- man/dunnTest.Rd | 2 +- tests/testthat/testthat_dunnTest.R | 9 --------- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 90a9d3c7..d9eb6f7b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -35,7 +35,6 @@ Imports: sciplot, withr Suggests: - asbio, DescTools, fishmethods, FSAdata, diff --git a/R/dunnTest.R b/R/dunnTest.R index e6d5dac9..7e787a81 100644 --- a/R/dunnTest.R +++ b/R/dunnTest.R @@ -12,7 +12,7 @@ #' #' The results from \code{DunnTest} match the results (in a different format) from the \code{\link[dunn.test]{dunn.test}} function from \pkg{dunn.test}. #' -#' The \code{\link[asbio]{pairw.kw}} function from the \pkg{asbio} package performs the Dunn test with the Bonferroni correction. The \code{\link[asbio]{pairw.kw}} also provides a confidence interval for the difference in mean ranks between pairs of groups. The p-value results from \code{DunnTest} match the results from \code{\link[asbio]{pairw.kw}}. +#' The \code{pairw.kw} function from the \pkg{asbio} package performs the Dunn test with the Bonferroni correction. The \code{pairw.kw} also provides a confidence interval for the difference in mean ranks between pairs of groups. The p-value results from \code{DunnTest} match the results from \code{pairw.kw}. #' #' The \code{\link[PMCMR]{posthoc.kruskal.nemenyi.test}} function from the \pkg{PMCMR} package uses the \dQuote{Nemenyi} (1963) method of multiple comparisons. #' diff --git a/man/dunnTest.Rd b/man/dunnTest.Rd index 8c7f81e1..e7eab6d8 100644 --- a/man/dunnTest.Rd +++ b/man/dunnTest.Rd @@ -60,7 +60,7 @@ There are a number of functions in other packages that do similar analyses. The results from \code{DunnTest} match the results (in a different format) from the \code{\link[dunn.test]{dunn.test}} function from \pkg{dunn.test}. -The \code{\link[asbio]{pairw.kw}} function from the \pkg{asbio} package performs the Dunn test with the Bonferroni correction. The \code{\link[asbio]{pairw.kw}} also provides a confidence interval for the difference in mean ranks between pairs of groups. The p-value results from \code{DunnTest} match the results from \code{\link[asbio]{pairw.kw}}. +The \code{pairw.kw} function from the \pkg{asbio} package performs the Dunn test with the Bonferroni correction. The \code{pairw.kw} also provides a confidence interval for the difference in mean ranks between pairs of groups. The p-value results from \code{DunnTest} match the results from \code{pairw.kw}. The \code{\link[PMCMR]{posthoc.kruskal.nemenyi.test}} function from the \pkg{PMCMR} package uses the \dQuote{Nemenyi} (1963) method of multiple comparisons. diff --git a/tests/testthat/testthat_dunnTest.R b/tests/testthat/testthat_dunnTest.R index 18269dc5..20298340 100644 --- a/tests/testthat/testthat_dunnTest.R +++ b/tests/testthat/testthat_dunnTest.R @@ -152,12 +152,3 @@ test_that("dunnTest matches dunn.test results for airquality data",{ } } # end require() }) - -test_that("dunnTest matches pairw.kw results",{ - if (require(asbio)) { - ## unadjusted p-values - tmp <- dunnTest(pH~fpond,data=ponds,method="bonferroni")$res$P.adj - tmp2 <- fact2num(pairw.kw(ponds$pH,ponds$fpond)$summary$'Adj. P-value') - expect_equivalent(round(tmp,6),tmp2) - } # end require() -})