How to load packages in R

Viewed 23468

I have successfully installed the tm package, which is located in: C:\Users\JustinLiang\Documents\R\win-library\3.0

After type library(), it shows me the R packages available list:

Packages in library ‘C:/Users/JustinLiang/Documents/R/win-library/3.0’:

tm Text Mining Package

Packages in library ‘C:/Program Files/R/R-3.0.2/library’:

however, when I try to load the package: library(tm), it shows me an 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 ‘tm’
2 Answers
Related