- using R Under development (unstable) (2026-03-08 r89578)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-14) 15.2.0
GNU Fortran (Debian 15.2.0-14) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-03-09 15:08:56 UTC
- checking for file ‘exactRankTests/DESCRIPTION’ ... OK
- this is package ‘exactRankTests’ version ‘0.8-35’
- checking CRAN incoming feasibility ... [1s/1s] OK
- 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 serialization versions ... OK
- checking whether package ‘exactRankTests’ can be installed ... OK
See the install log for details.
- used C compiler: ‘gcc-15 (Debian 15.2.0-14) 15.2.0’
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking whether startup messages can be suppressed ... [0s/0s] 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 ... [5s/7s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [0s/0s] 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 ... [3s/3s] OK
- checking for differences from example reference output ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [4s/5s] ERROR
Running ‘bugfix-tests.R’ [0s/1s]
Comparing ‘bugfix-tests.Rout’ to ‘bugfix-tests.Rout.save’ ... OK
Running ‘dtest.R’ [1s/2s]
Running ‘reg-tests.R’ [0s/0s]
Running ‘stest.R’ [2s/2s]
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 ... [4s/6s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR