I am having trouble with R installation on my Ubuntu machine. Whenever I try to install a package, it gives me the error:
package ‘xyz’ is not available (for R version 2.14.1)
.
I tried installing R through terminal itself, but I am not able to upgrade.
Is there a way, I can come over this version dependency while installing packages?
Thanks
To get the most recent version, you need to add CRAN to your /etc/apt/sources.list
file, see instructions on CRAN. Make sure to pick the address with the right version of Ubuntu (i.e the one installed on your machine, "precise" in my case), otherwise you will have version conflicts.
The thing is that the Ubuntu repository doesn't have the most recent version of R.
Ubuntu Software Center has updated the R install package to the latest version (3.2.2) so you can easily install R through it.
Just open Ubuntu Software Center and type: r-base