0
install.packages('RTextTools')
library(RTextTools)

data("NYTimes", package='RTextTools')
head(NYTimes)

timesMat <- create_matrix(NYTimes$Title)

I can view the data "NYTimes" but call to create_matrix throws error that function not found.

while call to library I see the below error:

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘slam’ Error: package or namespace load failed for ‘RTextTools’

Please help...

5
  • In other Q&A with similar errors, a look at .Rprofile was helpful, esp. non-existing packages from former versions ...
    – Dilettant
    Sep 10, 2016 at 16:54
  • What version of R and the package are you using (see the output from sesssionInfo()). Do you get any messages/warnings when you run install.packages()?
    – MrFlick
    Sep 10, 2016 at 17:06
  • Using R 3.2.5..install.packages('RTextTools') gives the message "package ‘RTextTools’ successfully unpacked and MD5 sums checked" but library(RTextTools) gives the above error: When I try to install slam package, I get the error "Warning in install.packages : package ‘slam’ is not available (for R version 3.2.5)"
    – Ruma Sinha
    Sep 10, 2016 at 17:14
  • The current version of slam on CRAN requires R (≥ 3.3.1). You can either upgrade R or install an old version of slam.
    – MrFlick
    Sep 10, 2016 at 17:45
  • Thank you..upgraded R to the latest version and can install packages like RTextTools/tm.
    – Ruma Sinha
    Sep 12, 2016 at 2:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.