Язык программирования с открытым исходным кодом R предназначен для статистических вычислений и графики. В этом обучающем модуле мы установим R на сервере Ubuntu 20.04.
Более детальный вариант настоящего руководства с подробным разъяснениями каждого шага можно найти в статье «Установка и настройка R в Ubuntu 20.04».
Выполните вход на сервер Ubuntu 20.04. как пользователь sudo без прав root и добавьте соответствующий ключ GPG.
- 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/'
Если вы не используете версию 20.04, найдите репозиторий из списка R Project Ubuntu, где перечислены имена для каждого выпуска.
- sudo apt update
- sudo apt install r-base
Запустите интерактивную оболочку R с правами root.
- sudo -i R
Вы получите примерно следующий результат:
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.
>
Это подтверждает, что мы успешно установили R и вошли в интерактивную оболочку.
Здесь представлены ссылки на более подробные обучающие руководства, связанные с настоящим руководством:
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.