10

I am currently using R version 3.2.3 on Ubuntu 16.04 LTS. I am trying to install a package in R called kma which requires packages like devtools, data.table etc. When I try to install these packages, I get this :

install.packages(c("devtools", "data.table", "reshape2", "dplyr"))
Warning in install.packages :
  download had nonzero exit status
Installing packages into ‘/home/varun/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
  packages ‘devtools’, ‘data.table’, ‘reshape2’, ‘dplyr’ are not available (for R version 3.2.3)

These packages are installed without any problems if the R version is 3.3 or above. How can I upgrade my R to version 3.3 or above from my current version of 3.2. Also all my packages are in 3.2. Do I have to install all these packages again?

Hope to hear soon.

Thanks

1 Answers1

10

Use Michael Rutter's PPA

Rutter's PPA currently has R 3.4.0. To install the PPA open a terminal by pressing Ctrl+Alt+T and enter:

sudo add-apt-repository ppa:marutter/rrutter

Followed by:

sudo apt update
sudo apt full-upgrade

This will upgrade your R installation.

Hope this helps

user68186
  • 37,461