R é uma linguagem de programação de código aberto, especializada em computação estatística e gráficos. Neste tutorial, instalaremos o R em um servidor Ubuntu 20.04.
Para uma versão mais detalhada deste tutorial, contendo explicações mais detalhadas para cada passo, confira Como instalar o R no Ubuntu 20.04.
Logado em seu servidor Ubuntu 20.04 como um usuário sudo não root, adicione a chave 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/'
Se você não estiver usando a versão 20.04, encontre o repositório relevante da lista Ubuntu do projeto R, nomeada para cada versão.
- sudo apt update
- sudo apt install r-base
Inicie o shell interativo do R como root.
- sudo -i R
Você deve receber um resultado similar ao seguinte:
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.
>
Isso confirma que instalamos o R com sucesso e entramos em seu shell interativo.
Alguns links para tutoriais mais detalhados relacionados a este guia.
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 upClick below to sign up and get $100 of credit to try our products over 60 days!