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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With