Why Use R on Cloud?

You might have R and RStudio installed on your computer. Though for some cases it is not enough. Some of these cases are

In those situations it would be terrific to have a spare computer at hand, or cloud!

It is extremely quick (~5 mins) and easy (< 10 lines of code) to set up R and RStudio on Digital Ocean servers with built in Docker.

What is Digital Ocean?

Digital Ocean (DO) is a virtual private server (VPS) provider, simply your computer on the cloud. You pay by the time you have an open server and by the server’s power (CPU, memory, bandwidth etc.). Though there are two ways of getting free credits; being a student or via referral.

Getting Credits

If you are a student, I suggest you take the student pack.

Student Pack

You can get $50 of free credits if you are a student. Just visit the site for details.


If you sign up with referral links, you immediately get $10. Also the referring person will get extra credits if there are any spending on the referred person’s account. Here’s mine below, but any referral link would do.


After you set up your DO account just log in to the panel.

Creating Droplets

Start creating a droplet by simply clicking on a button.

Step 1

Step 2

Select one click apps tab and Docker.

Step 3

Choose a droplet size. $10/month server will be good enough, but you can go for $20 as well. Remember it is pay as you go, so you will pay only the time droplet is open. It can be 1 minute, 1 hour, 1 day etc.