The purpose of the repository is to document task for setting up shiny server and rstudio server in local vm and deploying the application.
OS : CentOS 7
Step 1 : Intall EPEL
To install the necessary runtime dependencies for R, you will need to enable additional repositories for third-party or source packages
yum install epel-release
https://docs.fedoraproject.org/en-US/epel/#_el7
Step 2 : Install R
sudo yum install R
https://www.rstudio.com/products/shiny/download-server/redhat-centos/
Step 3 : Install shiny
sudo su - \ -c "R -e \"install.packages('shiny', repos='https://cran.rstudio.com/')\""https://www.rstudio.com/products/shiny/download-server/redhat-centos/
Step 4 : Install wget
Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS, the most widely used Internet protocols.
sudo yum install wget
Step 5 : Install R studio
wget https://download2.rstudio.org/server/centos7/x86_64/rstudio-server-rhel-2021.09.2-382-x86_64.rpm sudo yum install rstudio-server-rhel-2021.09.2-382-x86_64.rpmhttps://www.rstudio.com/products/rstudio/download-server/redhat-centos/
Step 6 : Install Shiny Server
wget https://download3.rstudio.org/centos7/x86_64/shiny-server-1.5.17.973-x86_64.rpm sudo yum install --nogpgcheck shiny-server-1.5.17.973-x86_64.rpmhttps://www.rstudio.com/products/shiny/download-server/redhat-centos/
Step 7 : Created directory
Created directory to save work for rstudio-server in /home/user/ mkdir shiny-app i will use this folder to save work (shinyapp,rmarkdown,rscripts) in Rstudio
Step 8 Log in R studio and set working directory then create app
default port number for Rstudio 8787
Step 9 : Install git
sudo yum install git git config --global user.email "you@example.com" git config --global user.name "Your Name"Step 10 Make git repository
Making /home/sagareeka/shiny-app/ as git repository where we are saving the work
First change working directory cd /home/sagareeka/shiny-app/ git init
Step 11 : Create GitHub repository
Go to GitHub and add a new repository and then copy the https address of GitHub
Step 12 : Push code to GitHub
git remote add origin https://github.com/____________.git git add . git commit -m "Initial commit" git push -u origin masterStep 13 : Push code from git to shiny server to deploy the app
git clone https://github.com/____________.gitStep 14 : Access Shiny app browser
ip:3838/shiny-apps/