Deepin 15.11安装最新版R的方法
Tofloor
poster avatar
johnmy
deepin
2020-01-10 01:12
Author
本帖最后由 johnmy 于 2020-1-10 07:57 编辑

原文发表于知乎,高手看起来可能比较简单。给需要的人参考。

1.在Deepin中按Ctrl+Alt+T启动终端,输入以下命令查看Debian的版本。


  1. cat /etc/debian_version  
Copy the Code

查看对应的版本代号,9.0对应stretch,根据https://mirrors.ustc.edu.cn/CRAN/bin/linux/debian/#supported-branches
查看对应版本添加的deb语句为:
  1. deb http:///bin/linux/debian stretch-cran35/
Copy the Code

我们将http://替换为中国的镜像,例如:

  1. deb https://mirrors.ustc.edu.cn/CRAN/bin/linux/debian  stretch-cran35
Copy the Code

3. 在终端运行
  1. sudo deepin-editor /etc/apt/sources.list
Copy the Code

打开sources.list文件,在末尾加上:
deb https://mirrors.ustc.edu.cn/bin/linux/debian stretch-cran35/

关闭sources.list
当然也可以用其他方法加上该语句。
4. 在终端运行:
  1. sudo apt install dirmngr
Copy the Code

  1. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'
Copy the Code


5.最后在终端运行:

  1. sudo apt-get update
Copy the Code



  1. sudo apt-get install r-base
Copy the Code

等待安装完成。

6.在终端运行:
R
看是否可以打开。







Reply Favorite View the author
All Replies
avatar
wtf4007
deepin
2020-01-10 18:19
#1
最新版R是什么?
Reply View the author
avatar
johnmy
deepin
2020-01-10 19:11
#2
https://bbs.deepin.org/post/187840
最新版R是什么?

R是一种统计绘画软件,很好用。https://www.r-project.org/
Reply View the author
avatar
Feng Yu
deepin
2020-01-10 19:51
#3
https://bbs.deepin.org/post/187840
R是一种统计绘画软件,很好用。https://www.r-project.org/

你这明明是R language,一种专用于科学计算的编程语言,性能很高
Reply View the author
avatar
johnmy
deepin
2020-01-10 23:02
#4
R is a free software environment for statistical computing and graphics,R是免费的统计计算绘图软件环境.
Reply View the author