Skip to content

Commit f776c68

Browse files
author
hornik
committed
Updated.
git-svn-id: https://svn.r-project.org/R/trunk@88754 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 133e5d9 commit f776c68

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

src/library/stats/tests/ks-test.Rout.save

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
R Under development (unstable) (2025-08-31 r88747) -- "Unsuffered Consequences"
2+
R Under development (unstable) (2025-09-01 r88751) -- "Unsuffered Consequences"
33
Copyright (C) 2025 The R Foundation for Statistical Computing
44
Platform: x86_64-pc-linux-gnu
55

@@ -182,7 +182,7 @@ Warning messages:
182182
cannot compute exact confidence interval with zeroes
183183
4: In .wilcox_test_one_cint_asymp(x, n, alternative, conf.level, ... :
184184
requested conf.level not achievable
185-
5: In .wilcox_test_one_cint_exact(x, n, alternative, conf.level) :
185+
5: In .wilcox_test_one_cint_exact(x, n, STAT$z, alternative, ... :
186186
requested conf.level not achievable
187187
>
188188
> cc <- lapply(RR, function(A) lapply(A, function(bb) lapply(bb, class)))
@@ -379,4 +379,4 @@ difference in location 0e+00 0e+00 0e+00
379379
>
380380
> proc.time()
381381
user system elapsed
382-
0.202 0.034 0.215
382+
0.513 0.048 0.551

tests/Examples/stats-Ex.Rout.save

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
R Under development (unstable) (2025-08-31 r88747) -- "Unsuffered Consequences"
2+
R Under development (unstable) (2025-09-01 r88752) -- "Unsuffered Consequences"
33
Copyright (C) 2025 The R Foundation for Statistical Computing
44
Platform: x86_64-pc-linux-gnu
55

@@ -5124,7 +5124,7 @@ function (V)
51245124
r[seq.int(from = 1L, by = p + 1L, length.out = p)] <- 1
51255125
r
51265126
}
5127-
<bytecode: 0x563b2649c7a8>
5127+
<bytecode: 0x56332a2a4b80>
51285128
<environment: namespace:stats>
51295129
> stopifnot(all.equal(Cl, cov2cor(cov(longley))),
51305130
+ all.equal(cor(longley, method = "kendall"),
@@ -7772,7 +7772,7 @@ attr(,".Environment")
77727772
> environment(as.formula("y ~ x"))
77737773
<environment: R_GlobalEnv>
77747774
> environment(as.formula("y ~ x", env = new.env()))
7775-
<environment: 0x563b259d6d40>
7775+
<environment: 0x5633297ac158>
77767776
>
77777777
>
77787778
> ## Create a formula for a model with a large number of variables:
@@ -12673,14 +12673,14 @@ attr(,"class")
1267312673
$linkfun
1267412674
function (mu)
1267512675
mu^lambda
12676-
<bytecode: 0x563b246f9b48>
12677-
<environment: 0x563b2473f3e8>
12676+
<bytecode: 0x5633285093c8>
12677+
<environment: 0x563328502628>
1267812678

1267912679
$linkinv
1268012680
function (eta)
1268112681
pmax(eta^(1/lambda), .Machine$double.eps)
12682-
<bytecode: 0x563b246f9ad8>
12683-
<environment: 0x563b2473f3e8>
12682+
<bytecode: 0x563328509518>
12683+
<environment: 0x563328502628>
1268412684

1268512685
>
1268612686
>
@@ -17039,8 +17039,8 @@ Step function with continuity 'f'= 0.2 , 3 knots at
1703917039
> unclass(sfun0)
1704017040
function (v)
1704117041
.approxfun(x, y, v, method, yleft, yright, f, na.rm)
17042-
<bytecode: 0x563b266f0588>
17043-
<environment: 0x563b261aea08>
17042+
<bytecode: 0x56332a4c5a58>
17043+
<environment: 0x56332a23e3c0>
1704417044
attr(,"call")
1704517045
stepfun(1:3, y0, f = 0)
1704617046
> ls(envir = environment(sfun0))
@@ -19076,13 +19076,11 @@ alternative hypothesis: true location shift is not equal to 0
1907619076
>
1907719077
> ## accuracy in ties determination via 'digits.rank':
1907819078
> wilcox.test( 4:2, 3:1, paired=TRUE) # Warning: cannot compute exact p-value with ties
19079-
Warning in wilcox.test.default(4:2, 3:1, paired = TRUE) :
19080-
cannot compute exact p-value with ties
1908119079

19082-
Wilcoxon signed rank test with continuity correction
19080+
Wilcoxon signed rank exact test
1908319081

1908419082
data: 4:2 and 3:1
19085-
V = 6, p-value = 0.1489
19083+
V = 6, p-value = 0.25
1908619084
alternative hypothesis: true location shift is not equal to 0
1908719085

1908819086
> wilcox.test((4:2)/10, (3:1)/10, paired=TRUE) # no ties => *no* warning
@@ -19094,13 +19092,11 @@ V = 6, p-value = 0.25
1909419092
alternative hypothesis: true location shift is not equal to 0
1909519093

1909619094
> wilcox.test((4:2)/10, (3:1)/10, paired=TRUE, digits.rank = 9) # same ties as (4:2, 3:1)
19097-
Warning in wilcox.test.default((4:2)/10, (3:1)/10, paired = TRUE, digits.rank = 9) :
19098-
cannot compute exact p-value with ties
1909919095

19100-
Wilcoxon signed rank test with continuity correction
19096+
Wilcoxon signed rank exact test
1910119097

1910219098
data: (4:2)/10 and (3:1)/10
19103-
V = 6, p-value = 0.1489
19099+
V = 6, p-value = 0.25
1910419100
alternative hypothesis: true location shift is not equal to 0
1910519101

1910619102
>
@@ -19633,7 +19629,7 @@ Number of Fisher Scoring iterations: 6
1963319629
> cleanEx()
1963419630
> options(digits = 7L)
1963519631
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
19636-
Time elapsed: 5.053 0.132 5.188 0 0
19632+
Time elapsed: 5.082 0.116 5.2 0 0
1963719633
> grDevices::dev.off()
1963819634
null device
1963919635
1

tests/reg-tests-1d.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ tryCmsg(contour(matrix(rnorm(100), 10, 10), levels = 0, labels = numeric()))
324324
invisible(warnings())
325325
.tmp <- lapply(list(0, 1, 0:1, 1:2, c(1,1), -1:1), function(x) wilcox.test(x))
326326
if(!interactive())
327-
stopifnot(length(print(uw <- unique(warnings()))) == 2)
327+
stopifnot(length(print(uw <- unique(warnings()))) == 1)
328328
## unique() gave only one warning in R <= 3.3.1
329-
329+
## For R >= 4.6.0 warnings for exact with ties are gone.
330330

331331
options(warn = 2)# no warnings allowed
332332

0 commit comments

Comments
 (0)