[Rd] Parts of test in datetime3.R not working

Korpela Mikko m|kko@korpe|@ @end|ng |rom m@@nm|tt@u@|@|to@@||
Thu Jun 15 11:57:03 CEST 2023


In test file datetime3.R, one call to stopifnot() has an argument named "expr" which should probably be "exprs". There are three tests wrapped in braces of which only the last one, "omitted 195 entries", is currently checked.

Proposed patch:

--- tests/datetime3.R	(revision 84544)
+++ tests/datetime3.R	(working copy)
@@ -45,7 +45,7 @@
 c2 <- capture.output(print(dt, max = 6))
 writeLines(tail(cc, 4))
 writeLines(c2)
-stopifnot(expr = {
+stopifnot(exprs = {
     grepl("omitted 151 entries", tail(cc, 1))
                   !anyDuplicated(tail(cc, 2))
     grepl("omitted 195 entries", tail(c2, 1))

-- 
Best regards,
Mikko



More information about the R-devel mailing list