Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nunotexbsd opened this issue Oct 5, 2023 · 1 comment
Closed

Comments

@nunotexbsd
Copy link

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
Copy link
Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant