Installing RStudio & Shiny Servers

November 12, 2018
By

(This article was first published on R on datawookie, and kindly contributed to R-bloggers)

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

  1. Install a recent version of R.
  2. Download the distribution.

    wget https://download2.rstudio.org/rstudio-server-1.1.463-amd64.deb
  3. Install the server.

    sudo dpkg -i rstudio-server-1.1.463-amd64.deb
  4. Verify the installation.

    sudo rstudio-server verify-installation
  5. RStudio Server runs on port 8787, so you should be able to access it in a browser at http://:8787.

Shiny Server

  1. Become root and install the shiny package.

    sudo su
    R -e "install.packages('shiny', repos='https://cran.rstudio.com/')"
    exit
  2. Download the distribution.

    wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.9.923-amd64.deb
  3. Install the server.

    sudo dpkg -i shiny-server-1.5.9.923-amd64.deb
  4. Shiny Server runs on port 3838, so you should be able to access it in a browser at http://:3838.

To leave a comment for the author, please follow the link and comment on their blog: R on datawookie.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)