How to install packages using devtools


I have installed devtools in R and would like to install package 'tm' using command devtools::install_cran(tm)
But, this doesn't seem to work and the installation fails with C++ version not latest on the Linux OS.
Please provide the detailed steps to use devtools() successfully.


Why do you want to use devtools to install tm? If you want to install the stable release of a package that is on CRAN, you can simply use install.packages().

In your case:


Because install.packages("tm") results in error - C++ compiler not latest on the OS

So basically the same error message you were getting with devtools, right? So the problem doesn't seem to have anything to do with the use of devtools but with your system. Can you update linux? Which distro are you using? And can you post the error message you are getting?