博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
如何在Ubuntu 20.04上安装R [快速入门]
阅读量:2509 次
发布时间:2019-05-11

本文共 1838 字,大约阅读时间需要 6 分钟。

介绍 (Introduction)

An open-source programming language, R specializes in statistical computing and graphics. In this tutorial, we will install R on an Ubuntu 20.04 server.

R是一种开放源代码编程语言,专门研究统计计算和图形。 在本教程中,我们将在Ubuntu 20.04服务器上安装R。

For a more detailed version of this tutorial, with more thorough explanations of each step, please refer to .

有关本教程的更详细版本,以及每个步骤的更详尽说明,请参阅

第1步-添加GPG密钥 (Step 1 — Adding GPG Key)

Logged into your Ubuntu 20.04 server as a sudo non-root user, add the relevant GPG key.

以sudo非root用户身份登录到Ubuntu 20.04服务器,添加相关的GPG密钥。

  • sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

第2步-添加R存储库 (Step 2 — Adding the R Repository)

  • sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'

    sudo add-apt-repository'deb https://cloud.r-project.org/bin/linux/ubuntu focus-cran40 /'

If you’re not using 20.04, find the relevant repository from the , named for each release.

如果您未使用20.04,请从 (为每个版本命名)中找到相关的存储库。

第3步-更新软件包列表 (Step 3 — Updating Package Lists)

  • sudo apt update

    sudo apt更新

第4步-安装R (Step 4 — Installing R)

  • sudo apt install r-base

    sudo apt安装r-base

步骤5 —测试安装 (Step 5 — Testing the Installation)

Start R’s interactive shell as root.

以root身份启动R的交互式shell。

  • sudo -i R

    须藤-i R

You should receive output similar to the following:

您应该收到类似于以下内容的输出:

Output   
R version 4.0.0 (2020-04-24) -- "Arbor Day"Copyright (C) 2020 The R Foundation for Statistical ComputingPlatform: x86_64-pc-linux-gnu (64-bit)...Type 'demo()' for some demos, 'help()' for on-line help, or'help.start()' for an HTML browser interface to help.Type 'q()' to quit R.>

This confirms that we’ve successfully installed R and entered its interactive shell.

这确认我们已经成功安装了R并进入了它的交互式外壳。

翻译自:

转载地址:http://slhgb.baihongyu.com/

你可能感兴趣的文章
快速实现Magento多语言的设置和产品数据的多语言方法
查看>>
A - Oil Deposits(搜索)
查看>>
hLG2034Fire Maze ---BFS
查看>>
定时Job在IIS中潜在危险-IIS 定期回收
查看>>
Kafka的安装和配置
查看>>
Alpha冲刺(10/10)
查看>>
数组Array的API2
查看>>
为什么 Redis 重启后没有正确恢复之前的内存数据
查看>>
No qualifying bean of type available问题修复
查看>>
第四周助教心得体会
查看>>
spfile
查看>>
Team Foundation Service更新:改善了导航和项目状态速查功能
查看>>
0x13 链表与邻接表
查看>>
js封装设置获取cookie
查看>>
二值图像连通区域标记
查看>>
MVC in Javascript
查看>>
eclipse 创建的Android工程的结构
查看>>
第8章 Android异常与性能优化相关面试问题
查看>>
有道单词导入 大量有道单词 生词本 批量导入 添加 有道单词XML 背单词
查看>>
jQuery Easing动画效果扩展插件
查看>>