by Mauricio “Pacha” Vargas

Version 1.4

OS Ubuntu 20.04


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 R 4.0 and 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, data.table, and other widely used packages so that in three clicks and no more than five minutes you'll have your server running and ready to fit models, share Shiny apps and much more.

Aside of fully solved dependencies, this image features a LaTeX installation and OpenBLAS to boost some numerical operations. This image is prepared, to a wide extent, to install, say, plumber and other packages as a wide variety of dependencies (i.e. libsodium-dev) are already solved.

The biggest addition to this update was including the arrow package with full S3 support (e.g. to use DigitalOcean Spaces of any other S3 filesystem).

Software Included

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 (look for the real IP in your control panel):

ssh root@

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 (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 the 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@ -L 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 instead of

DigitalOcean tutorials already covered the additional steps to do that by using Nginx or Apache. This image already includes Nginx to simplify things a bit.

Security note

The current version features fail2ban to provide some security. After 5 incorrect login attempts, the IP where the fail comes shall be banned from HTTP/SSH logins. If you are accidentally banned, you shall need to visit and access your droplet from the Dashboard's console and follow and unban your IP.

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":"rstudio-20-04"}' \

Support Details

Supported By:Mauricio “Pacha” Vargas
Hours:09.00 - 18.00
Support URL:

Additional Links

analogsea R package

an R package to control droplets from RStudio Desktop