Running ‘realtest.R’ [2s/5s]
Running the tests in ‘tests/realtest.R’ failed.
Complete output:
  > # This file is part of the 'stringx' project.
  > # Copyleft (c) 2021, Marek Gagolewski <https://www.gagolewski.com>
  > 
  > # Runs all unit tests for the package
  > 
  > this_package <- "stringx"
  > 
  > set.seed(123)
  > library(this_package, character.only=TRUE)
  
  Attaching package: 'stringx'
  
  The following objects are masked from 'package:base':
  
      ISOdate, ISOdatetime, Sys.time, casefold, chartr, endsWith,
      gregexec, gregexpr, grep, grepl, gsub, nchar, nzchar, paste,
      paste0, regexec, regexpr, sprintf, startsWith, strftime, strptime,
      strrep, strsplit, strtrim, strwrap, sub, substr, substr<-,
      substring, substring<-, tolower, toupper, trimws, xtfrm,
      xtfrm.default
  
  > if (require("realtest", quietly=TRUE)) {
  +     f <- file.path(path.package(this_package), "realtest")
  +     r <- test_dir(f, ".*\\.R$")
  +     x <- summary(r)
  + 
  +     names(r) <- row.names(x)
  +     fails <- x[x[["match"]] == "fail", , drop=FALSE]
  +     if (nrow(fails) > 0) {
  +         fails2 <- as.data.frame(fails[,
  +             !(names(fails) %in% ".expr") & !sapply(fails, function(x) all(is.na(x))),
  +             drop=FALSE])
  +         for (i in row.names(fails2)) {
  +             cat(sprintf("%s:%d:\n", fails2[i, ".file"], fails2[i, ".line"]))
  +             cat("    value: "); str(r[[i]][["object"]][["value"]], indent.str="    ")
  +             cat("    sides: "); str(r[[i]][["object"]][["sides"]], indent.str="    ")
  +         }
  + 
  +         if (require("stringi", quietly=TRUE))
  +             cat(sprintf("%s; %s\n", stri_info(TRUE), Sys.getlocale()))
  + 
  +         stop("some tests failed")
  +     }
  + }
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/stringx/realtest/strptime-all.R:81:
      value:  chr "1970-01-01T01:33:41+0100"
      sides:  NULL
  stringi_1.7.8 (en_US_POSIX.UTF-8; ICU4C 71.1 [system#U_CHARSET_IS_UTF8]; Unicode 14.0); LC_CTYPE=C.UTF-8;LC_NUMERIC=C;LC_TIME=C.UTF-8;LC_COLLATE=C;LC_MONETARY=C.UTF-8;LC_MESSAGES=C.UTF-8;LC_PAPER=C.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C.UTF-8;LC_IDENTIFICATION=C
  Error: some tests failed
  Execution halted