Ubuntu安装R

1)如果是ubuntu是16.04 LTS(如图所示),新增

deb https://cloud.r-project.org//bin/linux/ubuntu xenial/

2)如果是ubuntu是15.10,新增

deb https://cloud.r-project.org//bin/linux/ubuntu wily/

3)如果ubuntu是14.04 LTS,新增

deb https://cloud.r-project.org//bin/linux/ubuntu trusty/

4)如果ubuntu是12.04 LTS,新增

deb https://cloud.r-project.org//bin/linux/ubuntu precise/

echo -e "\ndeb https://cloud.r-project.org//bin/linux/ubuntu xenial/" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install r-base-dev -y -f

你可能感兴趣的:(deepin)