// Tutorial //

Cómo instalar R en Ubuntu 20.04 [Guía de inicio rápido]

Published on June 11, 2020
Español
Cómo instalar R en Ubuntu 20.04 [Guía de inicio rápido]

Introducción

R es un lenguaje de programación de código abierto que se especializa en informática estadística y gráficos. En este tutorial, instalaremos R en un servidor Ubuntu 20.04.

Para obtener una versión más detallada de este tutorial, con más explicaciones de cada paso, consulte Cómo instalar R en Ubuntu 20.04.

Paso 1: Añadir la clave GPG

Tras iniciar sesión en su servidor Ubuntu 20.04 como usuario sudo no root, añada la clave GPG relevante.

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

Paso 2: Añadir el repositorio de R

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

Si no está usando 20.04, busque el repositorio relevante desde la lista R Project Ubuntu,denominado para cada versión.

Paso 3: Actualizar las listas de paquetes

  1. sudo apt update

Paso 4: Instalar R

  1. sudo apt install r-base

Paso 5: Pruebas de instalación

Inicie la shell interactiva de R como root.

  1. sudo -i R

Debería obtener un resultado similar al siguiente:

Output
R version 4.0.0 (2020-04-24) -- "Arbor Day" Copyright (C) 2020 The R Foundation for Statistical Computing Platform: 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. >

Esto confirma que hemos instalado correctamente R e introducido su shell interactiva.

Tutoriales relacionados

Aquí tiene enlaces a tutoriales más detallados relacionados con esta guía:

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about us


Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in our Questions & Answers section, find tutorials and tools that will help you grow as a developer and scale your project or business, and subscribe to topics of interest.

Sign up now
About the authors

Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?
 
Leave a comment
Leave a comment...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Try DigitalOcean for free

Click here to sign up and get $200 of credit to try our products over 60 days!
Try DigitalOcean for free