# update indices
apt update -qq
# install two helper packages we need
apt install --no-install-recommends software-properties-common dirmngr
# import the signing key (by Michael Rutter) for these repo
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
apt install --no-install-recommends r-base
# Opcional: INICIO
add-apt-repository ppa:c2d4u.team/c2d4u4.0+
# Alternativa 1
apt install --no-install-recommends r-cran-rstan
# Alternativa 2
apt install --no-install-recommends r-cran-tidyverse
# Opcional: FINAL
sudo su - \
-c "R -e \"install.packages('shiny', repos='https://cran.rstudio.com/')\""
sudo apt-get install gdebi-core
wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.16.958-amd64.deb
sudo gdebi shiny-server-1.5.16.958-amd64.deb
# Instalando R Markdown
sudo su - -c "R -e \"install.packages('rmarkdown')\""
https://docs.rstudio.com/shiny-server/#install-shiny
https://www.rstudio.com/products/shiny/download-server/
https://www.rstudio.com/products/shiny/download-server/ubuntu/