这是任何时候的任何日期功能中的错误吗?
is this a bug in anytime's anydate function?
我正在尝试转换日期向量,这是最小的可重现示例。
dates <- c("04-Nov-2013", "20-Jan-2014", "28-Jan-2014", "24-Apr-2014")
library(anytime)
anydate(dates)
我的输出是:
[1] "2013-11-04" NA NA "2014-04-24"
中间两个元素不正确。这是一个错误吗?我的anytime包版本是0.1.1
sessionInfo() 根据要求:
sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] anytime_0.1.1 lazyeval_0.2.0 magrittr_1.5 lubridate_1.6.0
[5] readr_1.0.0 stringr_1.1.0 dplyr_0.5.0 tidyr_0.6.0
loaded via a namespace (and not attached):
[1] R6_2.2.0 assertthat_0.1 DBI_0.5-1 tools_3.3.2 tibble_1.2
[6] Rcpp_0.12.8 stringi_1.1.2
我无法复制:
R> dates <- c("04-Nov-2013", "20-Jan-2014", "28-Jan-2014", "24-Apr-2014")
R> anydate(dates)
[1] "2013-11-04" "2014-01-20" "2014-01-28" "2014-04-24"
R>
我们最近确实在 Windows64 上遇到了一个使用这种 %b
格式的奇怪错误。你在哪个平台?
该讨论在 this issue ticket on GitHub 中,请务必关注到最后。我确实更改了一些代码,因此您可能需要该更新——它应该进入新版本 "Real Soon Now"。但据我所知,该错误仅在 Windows 64 位中出现,甚至在 Windows 32 位中也出现。
我正在尝试转换日期向量,这是最小的可重现示例。
dates <- c("04-Nov-2013", "20-Jan-2014", "28-Jan-2014", "24-Apr-2014")
library(anytime)
anydate(dates)
我的输出是:
[1] "2013-11-04" NA NA "2014-04-24"
中间两个元素不正确。这是一个错误吗?我的anytime包版本是0.1.1
sessionInfo() 根据要求:
sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] anytime_0.1.1 lazyeval_0.2.0 magrittr_1.5 lubridate_1.6.0
[5] readr_1.0.0 stringr_1.1.0 dplyr_0.5.0 tidyr_0.6.0
loaded via a namespace (and not attached):
[1] R6_2.2.0 assertthat_0.1 DBI_0.5-1 tools_3.3.2 tibble_1.2
[6] Rcpp_0.12.8 stringi_1.1.2
我无法复制:
R> dates <- c("04-Nov-2013", "20-Jan-2014", "28-Jan-2014", "24-Apr-2014")
R> anydate(dates)
[1] "2013-11-04" "2014-01-20" "2014-01-28" "2014-04-24"
R>
我们最近确实在 Windows64 上遇到了一个使用这种 %b
格式的奇怪错误。你在哪个平台?
该讨论在 this issue ticket on GitHub 中,请务必关注到最后。我确实更改了一些代码,因此您可能需要该更新——它应该进入新版本 "Real Soon Now"。但据我所知,该错误仅在 Windows 64 位中出现,甚至在 Windows 32 位中也出现。