Instalando Shiny Server

# 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 --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
add-apt-repository "deb $(lsb_release -cs)-cran40/"

apt install --no-install-recommends r-base

# Opcional: INICIO

   # 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='')\""
sudo apt-get install gdebi-core
sudo gdebi shiny-server-