Skip to content

Commit 7dcb0f7

Browse files
author
maechler
committed
forgotten part of c87502
git-svn-id: https://svn.r-project.org/R/trunk@87505 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent a737e31 commit 7dcb0f7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/reg-tests-1d.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,16 +646,14 @@ D1 <- as.Date("2017-01-06")
646646
D2 <- as.Date("2017-01-12")
647647
seqD1 <- seq.Date(D1, D2, by = "1 day")
648648
stopifnot(exprs = {
649-
identical(seqD1, seq(D1, D2)) # by = "days" now implicit default
649+
identical(seqD1, seq(D1, D2)) # by = "days" implicit default since R >= 4.5
650650
identical(seqD1, seq(D1, D2, by = "1 days"))
651651
## These work "accidentally" via seq -> seq.default + "Date"-arithmetic (but *not* seq.Date):
652652
## are equal, but 2nd is "double"
653653
seqD1 == seq(by = 1, from = D1, length.out = 7)
654654
seqD1 == seq(by = 1, to = D2, length.out = 7)
655655
seqD1 == seq(by = 1L, to = D2, length.out = 7)
656-
## not (yet) identical(seqD1, seq(by = 1L, from = D1, length.out = 7))
657-
## swap order of (by, to) ==> *FAILS* because directly calls seq.Date() - FIXME?
658-
TRUE ||
656+
identical(seqD1, seq.Date(by = 1L, from = D1, length.out = 7)) # S3: need seq.Date()
659657
identical(seqD1, seq(to = D2, by = 1, length.out = 7))
660658
## above had failed in R-devel for a couple of days
661659
identical(seq(9L, by = -1L, length.out = 4L), 9:6)

0 commit comments

Comments
 (0)