Installing latest version of R on Ubuntu 12?

后端 未结 2 516
生来不讨喜
生来不讨喜 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条回答
  •  旧时难觅i
    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.

提交回复
热议问题