我刚刚做了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