* using log directory ‘/Users/ripley/R/packages/tests-devel/exactRankTests.Rcheck’ * using R Under development (unstable) (2026-03-08 r89575) * using platform: aarch64-apple-darwin25.3.0 * R was compiled by Apple clang version 21.0.0 (clang-2100.0.121.2) GNU Fortran (GCC) 14.2.0 * running under: macOS Tahoe 26.3.1 * using session charset: UTF-8 * current time: 2026-03-09 08:29:53 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘exactRankTests/DESCRIPTION’ ... OK * this is package ‘exactRankTests’ version ‘0.8-35’ * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘exactRankTests’ can be installed ... OK * used C compiler: ‘Apple clang version 21.0.0 (clang-2100.0.121.2)’ * used SDK: ‘MacOSX26.4.sdk’ * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in shell scripts ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking examples ... OK * checking for differences from example reference output ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘bugfix-tests.R’ Comparing ‘bugfix-tests.Rout’ to ‘bugfix-tests.Rout.save’ ... OK Running ‘dtest.R’ Running ‘reg-tests.R’ Running ‘stest.R’ ERROR Running the tests in ‘tests/reg-tests.R’ failed. Complete output: > > require("exactRankTests") Loading required package: exactRankTests Package 'exactRankTests' is no longer under development. Please consider using package 'coin' instead. > suppressWarnings(RNGversion("3.5.3")) > set.seed(29081975) > > # > # Regression tests > # > > # Blood Pressure data: Results from StatXact 5 (demo version) > > data(bloodp) > # bloodp$group <- factor(c(rep("Behandlung", 4), rep("Kontrolle", 11))) > > we <- wilcox.exact(bp ~ group, data=bloodp, conf.int=TRUE) > we Exact Wilcoxon rank sum test data: bp by group W = 35, p-value = 0.0989 alternative hypothesis: true mu is not equal to 0 95 percent confidence interval: -4 22 sample estimates: difference in location 9.5 > stopifnot(round(we$p.value,4) == 0.0989) > stopifnot(we$conf.int[1] == -4) > stopifnot(we$conf.int[2] == 22) > stopifnot(we$conf.estimate == 9.5) > > we <- wilcox.exact(bp ~ group, data=bloodp, conf.int=TRUE, exact=FALSE) > we Asymptotic Wilcoxon rank sum test data: bp by group W = 35, p-value = 0.08535 alternative hypothesis: true mu is not equal to 0 95 percent confidence interval: -4.143776e-05 2.000007e+01 sample estimates: difference in location 9.790799 > stopifnot(round(we$p.value,4) == 0.0853) > > we <- wilcox.exact(bp ~ group, data=bloodp, alternative="greater", conf.int=TRUE) > stopifnot(round(we$p.value,4) == 0.0542) > > > pt <- perm.test(bp ~ group, data=bloodp) > pt 2-sample Permutation Test data: bp by group T = 402, p-value = 0.104 alternative hypothesis: true mu is not equal to 0 > stopifnot(round(pt$p.value, 4) == 0.1040) > > pt <- perm.test(bp ~ group, data=bloodp, alternative="greater") > pt 2-sample Permutation Test data: bp by group T = 402, p-value = 0.05641 alternative hypothesis: true mu is greater than 0 > stopifnot(round(pt$p.value, 4) == 0.0564) > > pt <- perm.test(bp ~ group, data=bloodp, exact=FALSE) > pt Asymptotic 2-sample Permutation Test data: bp by group T = 402, p-value = 0.107 alternative hypothesis: true mu is not equal to 0 > stopifnot(round(pt$p.value, 4) == 0.1070) > > sc <- cscores(bloodp$bp, type="NormalQuantile") > X <- sum(sc[bloodp$group == "group2"]) > stopifnot(round(pperm(X, sc, 11), 4) == 0.0462) > stopifnot(round(pperm(X, sc, 11, alternative="two.sided"), 4) == 0.0799) > > # use scores mapped into integers > > sc <- cscores(bloodp$bp, type="NormalQuantile", int=TRUE) > X <- sum(sc[bloodp$group == "group2"]) > stopifnot(round(pperm(X, sc, 11), 4) == 0.0462) > stopifnot(round(pperm(X, sc, 11, alternative="two.sided"), 4) == 0.0799) > > # Equality of wilcox.test in package ctest and wilcox.exact > > x <- c(1.83, 0.50, 1.62, 2.48, 1.68, 1.88, 1.55, 3.06, 1.30) > y <- c(0.878, 0.647, 0.598, 2.05, 1.06, 1.29, 1.06, 3.14, 1.29) > > wt <- wilcox.test(y-x) > we <- wilcox.exact(y -x) > wt Wilcoxon signed rank exact test data: y - x V = 5, p-value = 0.03906 alternative hypothesis: true location is not equal to 0 > we Exact Wilcoxon signed rank test data: y - x V = 5, p-value = 0.03906 alternative hypothesis: true mu is not equal to 0 > stopifnot(wt$p.value == we$p.value) > > x <- c(0.80, 0.83, 1.89, 1.04, 1.45, 1.38, 1.91, 1.64, 0.73, 1.46) > y <- c(1.15, 0.88, 0.90, 0.74, 1.21) > we <- wilcox.exact(x, y, alternative = "g") # greater > wt <- wilcox.test(x, y, alternative = "g") > stopifnot(we$p.value == wt$p.value) > stopifnot(all(we$conf.int == wt$conf.int)) > > x <- rnorm(10) > y <- rnorm(10, 2) > wilcox.exact(x, y, conf.int = TRUE) Exact Wilcoxon rank sum test data: x and y W = 13, p-value = 0.003886 alternative hypothesis: true mu is not equal to 0 95 percent confidence interval: -2.6984506 -0.5996612 sample estimates: difference in location -2.07512 > > if (!any(duplicated(c(x,y)))) { + we <- wilcox.exact(x, y, conf.int = TRUE) + print(we) + wt <- wilcox.test(x, y, conf.int = TRUE) + print(wt) + we$pointprob <- NULL + we$method <- NULL + we$null.value <- NULL + wt$parameter <- NULL + wt$method <- NULL + wt$null.value <- NULL + stopifnot(all.equal(wt, we)) + we <- wilcox.exact(x, conf.int = TRUE) + print(we) + wt <- wilcox.test(x, conf.int = TRUE) + print(wt) + we$pointprob <- NULL + we$method <- NULL + we$null.value <- NULL + wt$parameter <- NULL + wt$method <- NULL + wt$null.value <- NULL + stopifnot(all.equal(wt, we)) + } Exact Wilcoxon rank sum test data: x and y W = 13, p-value = 0.003886 alternative hypothesis: true mu is not equal to 0 95 percent confidence interval: -2.6984506 -0.5996612 sample estimates: difference in location -2.07512 Wilcoxon rank sum exact test data: x and y W = 13, p-value = 0.003886 alternative hypothesis: true location shift is not equal to 0 95.67429 percent confidence interval: -2.6984506 -0.5996612 sample estimates: difference in location -2.07512 Error: wt and we are not equal: Component "conf.int": Attributes: < Component "conf.level": Mean relative difference: 0.007047815 > Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/Users/ripley/R/packages/tests-devel/exactRankTests.Rcheck/00check.log’ for details. 23.52 real 15.54 user 4.82 sys