在Mac中加载RTextTools库时出错,但这适用于Windows PC。
这是错误:
library(RTextTools) # For removeSparseTerms()
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘lava’
Error: package or namespace load failed for ‘RTextTools’
我尝试过安装RTextTools:
install.packages("RTextTools")
和
install.packages("RTextTools", repos="http://cran.rstudio.com/",
dependencies=TRUE)
和
install.packages("RTextTools", repos=c("http://rstudio.org/_packages",
"http://cran.rstudio.com"))