Can't install ("tm"): help!

Hi! I can't install "tm" in R version 3.6.1.
Now I'm using R version 3.3.1 but it doesn't work.

R version 3.3.3 (2017-03-06) -- "Another Canoe"

install.packages ("tm")
--- Please select a CRAN mirror for use in this session ---
Warning: dependency ‘slam’ is not available
also installing the dependencies ‘NLP’, ‘Rcpp’, ‘xml2’, ‘BH’
There are binary versions available but the source versions are later:
binary source needs_compilation
NLP 0.1-11 0.2-0 FALSE
Rcpp 0.12.14 1.0.3 TRUE
xml2 1.1.1 1.2.2 TRUE
BH 1.65.0-1 1.72.0-2 FALSE
tm 0.7-3 0.7-7 TRUE

Warning message:
In install.packages("tm") :
installation of package ‘tm’ had non-zero exit status

I'm not an expert (= I am very inexperienced). How can I solve the problem?
Thanks so much!!!!

Let's go in order, I recommend you to install the latest R version (3.6.2), try to install tm and post the whole error message you are getting with that R version, then we can see what is wrong and take the next step.

Dear Andresrcs, thank you!

R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night"

install.packages ("tm")
--- Please select a CRAN mirror for use in this session ---
also installing the dependency ‘slam’

There is a binary version available but the source version is later:
binary source needs_compilation
slam 0.1-46 0.1-47 TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel)

Before I answered "yes", now I answered "no" ... and it works. Why? :smiley:

The latest version of tm package is only available as source version and requeries compiling, the binary version is older but easier to install.

Thanks!!! :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.