[R] as.POSIXct character string is not in a standard unambiguous format

Ben Tupper btupper at bigelow.org
Wed Apr 5 22:51:00 CEST 2017


I can't answer the question about R 3.3.3, but I don't see anything in the update notes. 


In the meantime, would it skirt your issue if you explicitly stated the format?

x <- as.POSIXct("2002-02-02 02:02", format = "%Y-%m-%d %H:%M")


> On Apr 5, 2017, at 11:21 AM, Sebastien Moretti <sebastien.moretti at unil.ch> wrote:
> Hi
> I have lots of issues when I try to install R 3.3.3 during the "make check" step.
> Every time a call to as.POSIXct is done in test scripts, I got the same error message:
> e.g. x <- as.POSIXct("2002-02-02 02:02")
> Error in as.POSIXlt.character(x, tz, ...) :
>  character string is not in a standard unambiguous format
> It looks to be linked to localtime but when I compiled R 3.3.2  6 months ago, the same test scripts were there and succeeded.
> Is there an environmental variable to use to change the as.POSIXct behavior?
> Regards
> --
> Sébastien
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Ben Tupper
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544

More information about the R-help mailing list