我试着运行这个命令:
text_cleaning_tokens <- data %>% tidytext::unnest_tokens(word, text)
我收到这个错误:
Error: object ‘vec_rep_each’ is not exported by 'namespace:vctrs'
我该怎么修?
这可能是由于vctrs没有更新。请在GitHub上查看此问题:https://github.com/juliasilge/tidytext/issues/191
简而言之,尝试:update.packages()
,然后用install.packages("vctrs")
强制