Re: [R] is.na(strptime (...)) return TRUE on FreeBSD

2023-05-11 Thread Jinsong Zhao
On 2023/5/11 23:06, Ivan Krylov wrote: В Thu, 11 May 2023 22:15:49 +0800 Jinsong Zhao пишет: > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz > = "")) [1] "1970-01-01 12:00:00 CST" > is.na(d) [1] TRUE Glad to see you're making progress! (Sometimes, is.na(strptime(..

Re: [R] is.na(strptime (...)) return TRUE on FreeBSD

2023-05-11 Thread Jinsong Zhao
On 2023/5/12 1:34, Rainer Hurling wrote: Am 11.05.23 um 16:15 schrieb Jinsong Zhao: Hi there, The following codes may cause the problem in R 4.3.0 on FreeBSD in my last post: Error in as.POSIXlt.character(x, tz, ...)  > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz =

Re: [R] is.na(strptime (...)) return TRUE on FreeBSD

2023-05-11 Thread Rainer Hurling
Am 11.05.23 um 16:15 schrieb Jinsong Zhao: Hi there, The following codes may cause the problem in R 4.3.0 on FreeBSD in my last post: Error in as.POSIXlt.character(x, tz, ...) > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz = "")) [1] "1970-01-01 12:00:00 CST" > is.na

Re: [R] is.na(strptime (...)) return TRUE on FreeBSD

2023-05-11 Thread Jinsong Zhao
On 2023/5/11 23:06, Ivan Krylov wrote: В Thu, 11 May 2023 22:15:49 +0800 Jinsong Zhao пишет: > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz > = "")) [1] "1970-01-01 12:00:00 CST" > is.na(d) [1] TRUE Glad to see you're making progress! (Sometimes, is.na(strptime(

Re: [R] is.na(strptime (...)) return TRUE on FreeBSD

2023-05-11 Thread Ivan Krylov
В Thu, 11 May 2023 22:15:49 +0800 Jinsong Zhao пишет: > > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz > > = "")) > [1] "1970-01-01 12:00:00 CST" > > is.na(d) > [1] TRUE Glad to see you're making progress! (Sometimes, is.na(strptime(...)) == TRUE is what progress loo

Re: [R] win110 + R 4.3.0 dowload only when method = "wininet"

2023-05-11 Thread Ivan Krylov
В Thu, 11 May 2023 13:49:43 + Sebastián Kruk Gencarelli пишет: > I tried Sys.env(…) but it is forgoted in the next session. If Sys.setenv() works for you, you can put the line http_proxy=http://192.2.0.1:8080/ (or an appropriate equivalent) into an environment file that R reads when it start

[R] is.na(strptime (...)) return TRUE on FreeBSD

2023-05-11 Thread Jinsong Zhao
Hi there, The following codes may cause the problem in R 4.3.0 on FreeBSD in my last post: Error in as.POSIXlt.character(x, tz, ...) > (d <- strptime("1970-01-01 12:00:00 UTC", "%Y-%m-%d %H:%M:%OS", tz = "")) [1] "1970-01-01 12:00:00 CST" > is.na(d) [1] TRUE In R 4.3.0 on windows, > (d <- st

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Ivan Krylov
В Thu, 11 May 2023 17:51:33 +0800 Jinsong Zhao пишет: > Both codes do not return NA on FreeBSD: > > > strptime("1970-01-01 00:00.00 UTC", "%Y-%m-%d %H:%M", '') > [1] "1970-01-01 CST" > > strptime("1970-01-01 00:00.00 UTC", "%Y-%m-%d", '') > [1] "1970-01-01 CST" I must have misread the cod

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jinsong Zhao
The origin of this problem is when I try to update rstan package in R 4.3.0 on FreeBSD. I get the same error as that https://github.com/stan-dev/rstan/issues/612 However, I did not encounter this problem when using R 4.2.x or 4.1.x on FreeBSD. Best, Jinsong On 2023/5/11 16:56, Jinsong Zhao

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jinsong Zhao
On 2023/5/11 17:22, Ivan Krylov wrote: В Thu, 11 May 2023 16:56:41 +0800 Jinsong Zhao пишет: When I run the following code in R 4.3.0 on FreeBSD, I got error. > as.POSIXct("1970-01-01 00:00.00 UTC") Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambi

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jinsong Zhao
On 2023/5/11 17:24, Jeff Newmiller wrote: I find your claim suspect... a period is not interchangeable with a colon. Good catching, but In R 4.3.0 on FreeBSD, the same error after changing the period to a colon: > as.POSIXct("1970-01-01 00:00:00 UTC") Error in as.POSIXlt.character(x, tz, ...) :

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jeff Newmiller
I find your claim suspect... a period is not interchangeable with a colon. On May 11, 2023 1:56:41 AM PDT, Jinsong Zhao wrote: >Hi there, > >When I run the following code in R 4.3.0 on FreeBSD, I got error. > >> as.POSIXct("1970-01-01 00:00.00 UTC") >Error in as.POSIXlt.character(x, tz, ...) : >

Re: [R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Ivan Krylov
В Thu, 11 May 2023 16:56:41 +0800 Jinsong Zhao пишет: > When I run the following code in R 4.3.0 on FreeBSD, I got error. > > > as.POSIXct("1970-01-01 00:00.00 UTC") > Error in as.POSIXlt.character(x, tz, ...) : >character string is not in a standard unambiguous format Do strptime("1970-

[R] Error in as.POSIXlt.character(x, tz, ...)

2023-05-11 Thread Jinsong Zhao
Hi there, When I run the following code in R 4.3.0 on FreeBSD, I got error. > as.POSIXct("1970-01-01 00:00.00 UTC") Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format The same code could give correct answer in R 4.3.0 on Windows, and R 4.1.2