I have been trying to load the tm text mining package onto R studio for a number of hours now. I have tried everything I have come across online but it doesnt appear to work. I started with
install.packages('tm', dependencies = TRUE)
and am given the following error
Installing package into ‘D:/Users/byrne/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependencies ‘slam’, ‘Rcampdf’, ‘Rgraphviz’, ‘Rpoppler’, ‘tm.lexicon.GeneralInquirer’ are not available
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/tm_0.6-2.zip'
Content type 'application/zip' length 710948 bytes (694 KB)
downloaded 694 KB
when i then try to load the package using
library(tm)
I get this error
Loading required package: NLP
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘slam’
Error: package or namespace load failed for ‘tm’
I have then loaded NLP and tried to load 'slam'. which it then tells me is not available on R version 3.2.3. I then updated to 3.2.5 and it still gives me the same message. I have changed the CRAN mirror to mutliple different locations and still get the same error.
Any help is greatly appreciated as I'm stumped now.