Installing RStudio & Shiny Servers
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
I did a remote install of Ubuntu Server today. This was somewhat novel because it’s the first time that I have not had physical access to the machine I was installing on. The server install went very smoothly indeed.
The next tasks were to install RStudio Server and Shiny Server. The installation process for each of these is well documented on the RStudio web site:
These are my notes. Essentially the same, with some small variations.
RStudio Server
- Install a recent version of R.
Download the distribution.
wget https://download2.rstudio.org/rstudio-server-1.1.463-amd64.deb
Install the server.
sudo dpkg -i rstudio-server-1.1.463-amd64.deb
Verify the installation.
sudo rstudio-server verify-installation
RStudio Server runs on port 8787, so you should be able to access it in a browser at
http://<server-ip>:8787
.
Shiny Server
Become root and install the
shiny
package.sudo su R -e "install.packages('shiny', repos='https://cran.rstudio.com/')" exit
Download the distribution.
wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.9.923-amd64.deb
Install the server.
sudo dpkg -i shiny-server-1.5.9.923-amd64.deb
Shiny Server runs on port 3838, so you should be able to access it in a browser at
http://<server-ip>:3838
.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.