Install R and RStudio on Ubuntu

本文档介绍了如何在Ubuntu系统上安装R和RStudio。首先,通过软件中心安装R,但发现版本过旧,因此通过命令行进行卸载和重新安装。在Cran-R官网找到Ubuntu安装指南,添加apt源并更新系统,然后尝试安装R,遇到错误,需要导入签名密钥。最后,直接下载RStudio的.deb包并通过软件中心完成安装。

I wanted to try Linux system thus I formatted an old laptop bought 7 years ago (HP Pavilion dm3, French keyboard).
No doubt that I need R and RStudio to be installed on this laptop…

Install R

Software Center

In the software center, you can easily find an official R app under Category “Science & Engineering :: Mathematics”.
Installed that, I tried to installed packages “dplyr” but failed - error message told me that the current version is ver. 3.0.x…
That definitely doesn’t meet my needs because I’m using ver. 3.2.2 on WIN7. We need to remove it and reinstall it by cmd line.

Cmd Lines

On Cran-R homepage, there is an index led to Ubuntu installation instruction.
The first thing to do is to “add an entry in your /etc/apt/sources.list file” (one of the 3 lines below, anyone is OK):

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值