tidyverse / vroom

Fast reading of delimited files
https://vroom.r-lib.org
Other
622 stars 60 forks source link

tests failure: character string is not in a standard unambiguous format #520

Closed nunotexbsd closed 9 months ago

nunotexbsd commented 11 months ago

FreeBSD 13.2 /R 4.3.1

R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: amd64-portbld-freebsd13.2 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(testthat)
> library(vroom)

Attaching package: 'vroom'

The following object is masked from 'package:testthat':

    matches

>
> test_check("vroom")
[ FAIL 2 | WARN 0 | SKIP 14 | PASS 1072 ]

== Skipped tests (14) ==========================================================
* Not working on CI (1): 'test-datetime.R:203:3'
* On CRAN (12): 'test-col_types.R:35:3', 'test-path.R:15:3',
  'test-path.R:23:3', 'test-path.R:31:3', 'test-path.R:65:3',
  'test-path.R:71:3', 'test-path.R:86:3', 'test-path.R:137:3',
  'test-path.R:191:3', 'test-path.R:204:3', 'test-problems.R:2:3',
  'test-problems.R:184:3'
* l10n_info()$`UTF-8` is not TRUE (1): 'test-datetime.R:176:3'

== Failed tests ================================================================
-- Error ('test-datetime.R:238:3'): can use `tz = ''` for system time zone -----
Error in `as.POSIXlt.character(x, tz, ...)`: character string is not in a standard unambiguous format
Backtrace:
    x
 1. +-base::as.POSIXct("1970-01-01 00:00:00", tz = "Europe/London") at test-datetime.R:238:2
 2. \-base::as.POSIXct.default("1970-01-01 00:00:00", tz = "Europe/London")
 3.   +-base::as.POSIXct(as.POSIXlt(x, tz, ...), tz, ...)
 4.   +-base::as.POSIXlt(x, tz, ...)
 5.   \-base::as.POSIXlt.character(x, tz, ...)
-- Error ('test-vroom_write.R:184:3'): vroom_write equals the same thing as vroom_format --
Error in `as.POSIXlt.character(x, tz, ...)`: character string is not in a standard unambiguous format
Backtrace:
     x
  1. \-vroom::gen_tbl(100, 8, col_types = c("dilfcDtT"), missing = 0.1) at test-vroom_write.R:184:2
  2.   +-base::do.call(fun_nme, c(rows, specs$cols[[i]]))
  3.   \-vroom::gen_datetime(100, format = "")
  4.     +-base::structure(...)
  5.     +-stats::runif(n, min = min, max = max)
  6.     +-base::as.POSIXct("2001-01-01")
  7.     \-base::as.POSIXct.default("2001-01-01")
  8.       +-base::as.POSIXct(as.POSIXlt(x, tz, ...), tz, ...)
  9.       +-base::as.POSIXlt(x, tz, ...)
 10.       \-base::as.POSIXlt.character(x, tz, ...)

[ FAIL 2 | WARN 0 | SKIP 14 | PASS 1072 ]
Error: Test failures
Execution halted

Any clues? Thanks

nunotexbsd commented 9 months ago

Fixed.