I was able to use the library(tm) in r without problem until today, when loading tm shows:
library(tm)
tm
I used the following code to install the binary or the older version of slam. It worked for me.
install.packages("slam", type = "binary")