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.
Tras iniciar sesión en su servidor Ubuntu 20.04 como usuario sudo no root, añada la clave GPG relevante.
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
- 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.
- sudo apt update
- sudo apt install r-base
Inicie la shell interactiva de R como root.
- 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.
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.
Community and Developer Education expert. Former Senior Manager, Community at DigitalOcean. Focused on topics including Ubuntu 22.04, Ubuntu 20.04, Python, Django, and more.
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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.