Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lubridate 1.7.3 error: CCTZ: Unrecognized timezone of the input vector: ""

I have just installed the latest version of lubridate (1.7.3) and am getting the following error

> x <- as.POSIXct("2014-06-01 08:21:59 BST")
> for (j in 1:1e4){
     dum <- lubridate::force_tz(x, tzone = 'UTC')
 }
> for (j in 1:1e8){
     dum <- lubridate::force_tz(x, tzone = 'UTC')
 }
Error in C_force_tz(time, tz = tzone, roll) : 
  CCTZ: Unrecognized timezone of the input vector: ""
> j
[1] 580

Strange that if I continue with 1e4 after the first loop I don't get it, and if I start with 1e8 I don't get it. Any ideas?

like image 800
user1165199 Avatar asked Apr 06 '18 16:04

user1165199


1 Answers

This has now been resolved in the github version of lubridate https://github.com/tidyverse/lubridate/commit/c4636354e72ce1e6c427784cca94292b58a9271b.

They are hoping to release the fix this week

like image 101
user1165199 Avatar answered Oct 27 '22 13:10

user1165199