I installed it using apt get and it now says 3.2.2 - this is an offending version. How do I downgrade to 3.1.1?
Update:
install.packages(c("batch", "bitops", "boot", "caTools", "data.table", "doMC", "doSNOW", "ggplot2", "glmnet", "lda", "Matrix", "matrixStats", "moments", "plotrix", "psych", "reshape", "topicmodels", "wordcloud", "methods"), dependencies=TRUE)
Warning messages:
1: package ‘methods’ is not available (for R version 3.2.2)
2: In install.packages(c("boot", "caTools", "data.table", "doMC", "doSNOW", :
installation of package ‘RCurl’ had non-zero exit status
3: In install.packages(c("boot", "caTools", "data.table", "doMC", "doSNOW", :
installation of package ‘curl’ had non-zero exit status
4: In install.packages(c("boot", "caTools", "data.table", "doMC", "doSNOW", :
installation of package ‘XML’ had non-zero exit status
5: In install.packages(c("boot", "caTools", "data.table", "doMC", "doSNOW", :
installation of package ‘OAIHarvester’ had non-zero exit status
6: In install.packages(c("boot", "caTools", "data.table", "doMC", "doSNOW", :
installation of package ‘topicmodels’ had non-zero exit status
How do I downgrade?
To change the current version of R. Framework, you can either: Run the installer from CRAN for the R version you want to be current. Use the RSwitch utility available at: https://rud.is/rswitch/
So I've encountered the same problem recently. Here's a solution:
Remove the currently installed R version,
sudo apt-get remove r-base-core
sudo apt-get autoremove
Find the version you need by,
apt-cache showpkg r-base
It will look like the following:
Package: r-base
Versions:
3.2.2-1precise0 (/var/lib/apt/lists/cran.rstudio.com_bin_linux_ubuntu_precise_Packages)
Description Language:
File: /var/lib/apt/lists/cran.rstudio.com_bin_linux_ubuntu_precise_Packages
MD5: 5787ca79ed716232c4cc2087ed9b425b
After that, look for the required version and install it. But, the installation of the r-base will throw errors again, so just execute:
sudo apt-get install r-base-core=3.1.1-1precise0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With