How to install and configure R Shiny

Jump to navigation Jump to search

This tutorial shows how to install R Shiny on Centos 7.

Install R

sudo yum install R

Install Shiny and dependency packages

sudo su - -c "R -e \"install.packages(c('shiny', 'rmarkdown', 'devtools', 'RJDBC'), repos='')\""

Download and install R Shiny server

sudo yum install --nogpgcheck shiny-server-

Start and Stop R Shiny server

sudo systemctl start shiny-server
sudo systemctl stop shiny-server

Modify firewall rules (if needed) to allow users to access R shiny server

sudo firewall-cmd --permanent --zone=public --add-port=3838/tcp
sudo firewall-cmd --reload

Visit Shiny server


Configure Shiny server

The Shiny configuration file is /etc/shiny-server/shiny-server.conf
Modify this file for customized configuration