tidyverse更新后,解析函数中断-不断收到错误“ is.character(x)不正确”

时间:2019-01-02 20:12:56

标签: r lubridate readr

我刚刚做了tidyverse::tidyverse_update()来更新我的tidyverse。自从更新以来,我一直在过去运行良好的脚本上遇到is.character(x) is not TRUE错误。我的readr版本是1.3.1。

例如(预期输出为[1] "20001"):

library(tidyverse)
parse_character(20001)
># Error in parse_vector(x, col_character(), na = na, locale = locale, trim_ws = trim_ws) : 
>#  is.character(x) is not TRUE

和另一个示例(预期输出为[1] "2018-01-02"):

library(lubridate)
parse_date(now())
># Error in parse_vector(x, col_character(), na = na, locale = locale, trim_ws = trim_ws) : 
>#  is.character(x) is not TRUE

0 个答案:

没有答案