0

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

Python Learner
  • 437
  • 2
  • 11
  • 28

1 Answers1

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")
javac
  • 2,819
  • 1
  • 20
  • 22