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 ver
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
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.