debian安装r_如何在Debian 10上安装R

debian安装r

介绍 (Introduction)

An open-source programming language, R is widely used for developing statistical software, performing data analysis and visualization. R offers many user-generated packages for specific areas of study, which makes it applicable to many fields.

R是一种开放源代码编程语言,被广泛用于开发统计软件,执行数据分析和可视化。 R为特定的研究领域提供了许多用户生成的软件包,这使其可应用于许多领域。

In this tutorial, we will install R and show how to add packages from the official Comprehensive R Archive Network (CRAN).

在本教程中,我们将安装R并演示如何从官方的Integrated R存档网络(CRAN)添加软件包。

先决条件 (Prerequisites)

To follow along with this tutorial, you will need a Debian 10 server with:

要继续学习本教程,您将需要具有以下功能的Debian 10服务器:

  • at least 1GB of RAM

    至少 1GB的RAM

  • a non-root user with sudo privileges

    具有sudo特权的非root用户

To learn how to achieve this setup, follow our Debian 10 initial server setup guide.

要了解如何实现此设置,请遵循Debian 10初始服务器设置指南

Once these prerequisites are in place, you’re ready to begin.

一旦满足这些先决条件,就可以开始了。

第1步-安装依赖项 (Step 1 — Installing Dependencies)

Because R is a fast-moving project, the latest stable version isn’t always available from Debian’s repositories, so we’ll need to add the external repository maintained by CRAN. In order to do this, we’ll need to install some dependencies for the Debian 10 cloud image.

因为R是一个快速发展的项目,所以Debian的存储库并不总是提供最新的稳定版本,因此我们需要添加CRAN维护的外部存储库。 为此,我们需要为Debian 10云映像安装一些依赖项。

To perform network operations that manage and download certificates, we need to install dirmngr so that we can add the external repository.

要执行管理和下载证书的网络操作,我们需要安装dirmngr以便我们可以添加外部存储库。

  • sudo apt install dirmngr --install-recommends

    须藤apt install dirmngr --install-recommends

To add a PPA reference to Debian, we’ll need to use the add-apt-repository command. For installations where this command may not available, you can add this utility to your system by installing software-properties-common:

要添加对Debian的PPA引用,我们需要使用add-apt-repository命令。 对于此命令可能不可用的安装,可以通过安装software-properties-common将此实用

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值