How to install package tm in R-3.3.0

一曲冷凌霜 提交于 2019-12-25 00:10:56

问题


I'm using R-3.3.3. I tried to install package tm using following commands

install.packages('tm',dependencies = TRUE)
library('tm')

But I'm getting error message

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘slam’ In addition: Warning message: package ‘tm’ was built under R version 3.3.3 Error: package or namespace load failed for ‘tm’

I saw two solutions for same type of error here & dependency ‘slam’ is not available when installing TM package. I tried those two but I'm getting error message like

Installation failed: Could not find build tools necessary to build slam.

Kindly suggest me how to install tm package in R-3.3.3


回答1:


I faced the same problem today, after testing many ways to solve it I could find the following command that can install the tm package, sorry I know it is very late but still useful.

require(devtools)
install_version("tm", version = "0.7-1", repos = "http://cran.us.r-project.org")


来源:https://stackoverflow.com/questions/46056740/how-to-install-package-tm-in-r-3-3-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!