Ubuntu下安装R&RStudio,以及在桌面新建RStudio图标
2016-05-08 15:50
621 查看
一.安装R
1.Ctrl+Alt+T打开终端;
2.sudo gedit
/etc/apt/sources.list 添加软件源;
3.将如下软件源:
添加到文件最后。如下:
[/code]
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu utopic partner
# deb-src http://archive.canonical.com/ubuntu utopic partner
deb http://security.ubuntu.com/ubuntu/ vivid-security multiverse universe restricted main
deb http://mirrors.xmu.edu.cn/CRAN/bin/linux/ubuntu xenial/
实际上,可选择不同镜像网站和文件夹名称,链接放在这,自己按着修改就行。
4.更新软件源:sudo apt-get update;
5.安装软件:sudo apt-get install r-base r-base-dev;
6.在终端下输入R即可运行。
二.安装RStudio
1.打开链接地址:https://www.rstudio.com/products/rstudio/download/
2.选择对应版本下载;
3.弹出界面,直接选择open with Ubuntu Software Center,直接安装;
4.等待安装完成;
5.安装完成后,终端输入rstudio打开程序;
三.建立RStudio桌面图标
1.桌面新建一个文件;
2.复制下面内容到文件中;
[Desktop Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/usr/lib/rstudio/bin/rstudio
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/usr/lib/rstudio/rstudio.png
MimeType=
Name[zh_CN]=RStudio
Name=RStudio
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=hoyochen
3.其中,可能需要修改的内容,包括Exec,Icon,两个Name,X-KDE-Username属性;这个方法可以通用建立其他程序桌面图标,只要修改这些属性;
4.将文件名改为RStudio.desktop
5.右键文件属性,修改文件权限,勾选允许作为程序执行文件;
6.双击运行程序。
1.Ctrl+Alt+T打开终端;
2.sudo gedit
/etc/apt/sources.list 添加软件源;
3.将如下软件源:
deb http://mirrors.xmu.edu.cn/CRAN/bin/linux/ubuntu xenial/
添加到文件最后。如下:
[/code]
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu utopic partner
# deb-src http://archive.canonical.com/ubuntu utopic partner
deb http://security.ubuntu.com/ubuntu/ vivid-security multiverse universe restricted main
deb http://mirrors.xmu.edu.cn/CRAN/bin/linux/ubuntu xenial/
实际上,可选择不同镜像网站和文件夹名称,链接放在这,自己按着修改就行。
4.更新软件源:sudo apt-get update;
5.安装软件:sudo apt-get install r-base r-base-dev;
6.在终端下输入R即可运行。
二.安装RStudio
1.打开链接地址:https://www.rstudio.com/products/rstudio/download/
2.选择对应版本下载;
3.弹出界面,直接选择open with Ubuntu Software Center,直接安装;
4.等待安装完成;
5.安装完成后,终端输入rstudio打开程序;
三.建立RStudio桌面图标
1.桌面新建一个文件;
2.复制下面内容到文件中;
[Desktop Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/usr/lib/rstudio/bin/rstudio
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/usr/lib/rstudio/rstudio.png
MimeType=
Name[zh_CN]=RStudio
Name=RStudio
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=hoyochen
3.其中,可能需要修改的内容,包括Exec,Icon,两个Name,X-KDE-Username属性;这个方法可以通用建立其他程序桌面图标,只要修改这些属性;
4.将文件名改为RStudio.desktop
5.右键文件属性,修改文件权限,勾选允许作为程序执行文件;
6.双击运行程序。
相关文章推荐
- Ubuntu 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- ubuntu下chrome无法同步问题解决
- Ubuntu Linux使用体验
- 使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
- 以Ubuntu 9.04为例 将工作环境迁移到 Linux
- VirtualBox虚拟机XP与宿主机Ubuntu互访共享文件夹
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 15.04 正式版发布下载
- Linux-Ubuntu 10.04安装Cadence-ic610 方法总结图解
- Ubuntu 12.04和Windows 7双系统安装图解
- Ubuntu /home下中文目录如何修改成英文?
- 开机出现:grub rescue的修复方法
- Ubuntu连接Android真机调试
- 你应该选择 Ubuntu 还是 Fedora?
- 100 个最佳 Ubuntu 应用(中)
- 看看我的Ubuntu Linux截图
- Ubuntu 12.04 LTS服务器版安装过程及使用图解