The R Project SVN R

Rev

Rev 87359 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87359 Rev 89534
Line 42... Line 42...
42
## Prior to R 4.0.0 this overflowed an array.  Now gives a warning
42
## Prior to R 4.0.0 this overflowed an array.  Now gives a warning
43
 
43
 
44
z <- paste("2017", c(1,365,366), sep = "-")
44
z <- paste("2017", c(1,365,366), sep = "-")
45
(zz <- strptime(z, "%Y-%j"))
45
(zz <- strptime(z, "%Y-%j"))
46
stopifnot(identical(is.na(zz), c(FALSE, FALSE, TRUE)))
46
stopifnot(identical(is.na(zz), c(FALSE, FALSE, TRUE)))
-
 
47
 
-
 
48
cat('Time elapsed: ', proc.time(),'\n')