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
将此实用