Installing latest version of R on Ubuntu 12?

后端 未结 2 511
生来不讨喜
生来不讨喜 2021-01-25 11:24

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

相关标签:
2条回答
  • 2021-01-25 12:09

    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

    0 讨论(0)
  • 2021-01-25 12:14

    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.

    0 讨论(0)
提交回复
热议问题