RStudio
RStudio
by Open Trade Statistics

VERSION 1.2

OS Ubuntu 18.04

Create RStudio Droplet

Description

RStudio Server is the premier integrated development environment for R that allows to move computation close to the data and scale compute and RAM centrally.

This is a pre-configured image with open source editions of RStudio Server 1.2. and Shiny Server 1.5. All dependencies are solved for you to just go and use this droplet with already configured tidyverse, shiny, and even h2o so that in three clicks and no more than five minutes you'll have your server running and ready to fit models and more.

Aside of fully solved dependencies, this image features full LaTeX installation and OpenBLAS to boost some operations.

Please notice that the software listing is limited to end-side software. For example, it lists tidyverse, but it doesn't list dplyr as it was installed beforehand as a dependency of tidyverse.

Software Included

PackageVersionLicense
R3.6.1GPL-3
openJDK11.0.4GPL-2
OpenBLAS0.2.20BSD-3
TeX Live2018GPL-2
RStudio Server1.2.5001GPL-3
Shiny Server1.5.12.933AGPL-3
R Development - devtools2.1.0GPL-3
R Development - pacman0.5.1GPL-2
R Development - packrat0.5.0GPL-2
R Development - vcr0.3.0MIT
R Datasets - tidyverse1.2.1GPL-3
R Datasets - data.table1.12.2MPL 2.0
R Datasets - openxlsx4.1.0.1MIT
R Datasets - chunked0.4GPL-2
R Documentation - rmarkdown1.15GPL-3
R Documentation - bookdown0.1.3GPL-3
R Documentation - pkgdown1.3.0MIT
R Documentation - xaringan0.12MIT
R Documentation - Rdpack0.11-0GPL-3
R Databases - RPostgreSQL0.6-2GPL-2
R Databases - RMariaDB1.0.6GPL-2
R Databases - pool0.1.4.2GPL-3
R Statistics - survey3.36GPL-3
R Statistics - glm21.2.1GPL-3
R Statistics - censReg0.5-26GPL-3
R Statistics - multiwayvcov1.2.3BSD-2
R Statistics - forecast8.9GPL-3
R Statistics - fable0.1.0GPL-3
R Statistics - tidymodels0.0.2GPL-3
R Statistics - h2o3.26.0.2Apache-2.0
R Statistics - randomForest4.6-14GPL-3
R Statistics - gbm2.1.5GPL-3
R Statistics - arules1.6-4GPL-3
R Statistics - tree1.0-40GPL-3
R Statistics - klaR0.6-14GPL-2
R Statistics - RWeka0.4-40GPL-2
R Statistics - lars1.2GPL-2
R Statistics - earth5.1.1GPL-3
R Statistics - CORElearn1.53.1GPL-3
R Statistics - mboost2.9-1GPL-2
R Statistics - mlr2.15.0BSD-2
R Visualization - corrplot0.84GPL-3
R Visualization - shinydashboard0.7.1GPL-3
R Visualization - shinyWidgets0.4.9GPL-3
R Visualization - shinydashboardPlus0.7.0GPL-3
R Visualization - bsplus0.1.1MIT
R Visualization - shinyML0.1.1GPL-3
R Visualization - shinystan2.5.0GPL-3
R Visualization - golem0.1MIT
R Visualization - highcharter0.7.0MIT + Highcharts License
R Visualization - plotly4.9.0MIT
R Visualization - ggvis0.4.4GPL-2
R Maps - sf0.7-7GPL-2
R Maps - spData0.3.0CC0
R Maps - tmap2.3GPL-3
R Maps - cartography2.2.0GPL-3
R Networks - ggraph2.0.0MIT
R Networks - visNetwork2.0.8MIT
R Networks - ndtv0.13.0GPL-3
R Networks - intergraph2.0-2GPL-3
R Networks - igraphdata1.0.1CC BY-SA 4.0
R Misc - here0.1GPL-3
R Misc - V82.3MIT
R APIs - plumber0.4.6MIT
R Parallelization - doParallel1.0.15GPL-2
R Networks - qgraph1.6.3GPL-2

Getting started after deploying RStudio

Creating a system administrator account

It is highly recommended that you create an administrator account separate from root.

With your just created droplet, you can access to the shell from Digital Ocean Control Panel (i.e. from the console link in this image) or by using ssh.

If you want to use ssh (recommended) open a terminal on your local and login as root assuming the IP is 203.0.113.0 (look for the real IP in your control panel):

ssh root@203.0.113.0

Let's create the user paul:

adduser paul
usermod -aG sudo paul

For the full reference please check this DigitalOcean tutorial.

Adding more users

Let's create three users that will only be able to install R packages to their personal directory (and of course to use R, RStudio and Shiny):

adduser john 
adduser george 
adduser ringo

Using RStudio Server

From any modern browser such as Firefox, type 203.0.113.0:8787 (see your droplet IP in control panel) on the address bar and then enter with any of the users you created before.

Another option is to access by using an ssh tunnel, with nice benefit of being encrypted. If your network has blocked ports, probably you need this method. Run this command from the terminal:

ssh -f root@203.0.113.0 -L 8787:203.0.113.0:8787 -N

And then, from the browser go to localhost:8787.

Optional: custom domain and enabled https

Let's say that you want people from your organization access RStudio Server from rstudio.ourcompany.us instead of 203.0.113.0:8787. DigitalOcean tutorials already covered the additional steps to do that by using Nginx or Apache.

API Creation

In addition to creating a Droplet from the RStudio 1-Click App via the control panel, you can also use the DigitalOcean API.

As an example, to create a 4GB RStudio Droplet in the SFO2 region, you can use the following curl command. You’ll need to either save your API access token to an environment variable or substitute it into the command below.


  curl -X POST -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer '$TOKEN'' -d \
      '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"simplystatistics-rstudio-18-04"}' \
      "https://api.digitalocean.com/v2/droplets"
      

Support Details

Supported By:Open Trade Statistics
Hours:09.00 - 18.00
Support URL:https://github.com/tradestatistics/rstudio-server-full-droplet/issues

Learn More

Product Docs

Technical overviews, how-tos, release notes, and support material

Tutorials

DevOps and development guidelines

API Docs

Run your resources programmatically

Ask a question

Connect, share and learn