RStudio Cloud – How to Get Started For Free (2024)

[This article was first published on r – Appsilon | Enterprise R Shiny Dashboards, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

RStudio Cloud – How to Get Started For Free (1)

RStudio Cloud is a hosted version of the well-known R IDE – RStudio. It was created to simplify teaching and learning R programming languages for organizations, professionals, teachers, trainers, students, and hobbyists. But how can you get started, and why should you? That’s what we’ll answer today.

After reading, you’ll know why you should move R and RStudio to the cloud, how to get started, create and share your first project, and also how to work with R Markdown. So without much ado, let’s dive straight in!

Are you a beginner RStudio user? Here’s our curated list of shortcuts and tips.

Table of contents:

Why Move R and RStudio to the Cloud?

Think of RStudio Cloud as a managed cloud instance of the RStudio IDE. But it’s not just a piece of software – it also enables computing. Here’s the list of features we find worth mentioning:

  • Learning R easily – RStudio Cloud comes with a couple of interactive learning materials that will get you started with the fundamentals of data science in R.
  • No installation required – Run code straight from the browser – no need to download, install, and configure R and RStudio locally.
  • Reproducible environment – How many hours have you spent installing libraries and managing environments? In RStudio Cloud, each project has its own environment that is reproducible when anyone accesses the project.
  • Collaboration – You can easily share your insights with teammates in a private space.

These alone are four excellent reasons why you should consider moving R and RStudio to the cloud. But before we show you how, let’s address the elephant in the room – pricing.

RStudio Cloud Pricing

Here is the good news – you can get started with RStudio Cloud for free. The only “gotcha” is that you have limited projects, project hours, and computing power. The table below summarizes the differences between RStudio Cloud pricing plans as of January 2022:

RStudio Cloud – How to Get Started For Free (2)

Image 1 – RStudio Cloud plan options

As always, both the offerings and price of individual plans can change, so we recommend you check the official listing.

We advise you to get started for free and scale if you need additional hours or compute power.

And that about summarizes the pros and cons. Yes, you get access to a familiar interface that requires no installation and makes collaboration a breeze, but you’ll likely have to pay for it. If you’re an organization, 25 project hours and a single shared space won’t be enough.

If the pros outweigh the cons, make sure to read the next section to see how to get started with RStudio Cloud.

RStudio Cloud – Getting Started

You’ll have to register for a free account to get started with RSudio Cloud. Head over to their website – here’s what you should see:

RStudio Cloud – How to Get Started For Free (3)

Image 2 – RStudio Cloud website

Click on the Sign Up button in the top right corner and the following form will pop up:

RStudio Cloud – How to Get Started For Free (4)

Image 3 – RStudio Cloud sign up form

By far the fastest and easiest registration method is by using your Google or GitHub credentials. We opted for Google sign-up, and it took two clicks. Once done, you’ll be presented with the RStudio Cloud dashboard:

RStudio Cloud – How to Get Started For Free (5)

Image 4 – RStudio Cloud dashboard

How to Create a New Project in RStudio Cloud

Once in the dashboard, you can click on the New Project New RStudio Project to get started:

RStudio Cloud – How to Get Started For Free (6)

Image 5 – Creating a new project in RStudio Cloud

You’ll have to wait 30-60 seconds until the new project is provisioned. Once done, you’ll see a well-familiar RStudio interface:

RStudio Cloud – How to Get Started For Free (7)

Image 6 – RStudio Cloud interface

The whole cloud IDE works just as you would expect. You can create a new R script by going to FileNew FileR Script as shown below:

RStudio Cloud – How to Get Started For Free (8)

Image 7 – Creating a new R script

We’ll see you in the next section where we’ll upload and explore some data.

How to Upload and Work With Data in RStudio Cloud

Uploading a dataset to RStudio Cloud is as simple as clicking on the Upload button in the Files tab (bottom right quadrant). Once there, click on Choose file and specify the path to your dataset. For demonstration purposes, we’re using the training subset of the Titanic dataset:

RStudio Cloud – How to Get Started For Free (9)

Image 8 – Uploading a dataset to RStudio Cloud

Once the dataset is uploaded to the cloud, you can load it into the R environment. There are two approaches:

  1. Import dataset functionality – Click on the Import Dataset button under Environment in the top right quadrant.
  2. R’s CSV reader – Use a dedicated R package to load CSV files.

We’ll opt for the first option today. Here’s what you should see:

RStudio Cloud – How to Get Started For Free (10)

Image 9 – Loading a dataset into the R environment

Once you click on Import, you’ll have the dataset ready to use in your RStudio Cloud environment:

RStudio Cloud – How to Get Started For Free (11)

Image 10 – Dataset successfully imported to RStudio Cloud

But what now? Well, we have to install a couple of R packages before we can work with it. To keep things simple, we’ll only install dplyr and ggplot2. Run the following commands from the R console:

RStudio Cloud – How to Get Started For Free (12)

Image 11 – Installing dplyr and ggplot2 R packages

And now let’s import and use the packages. The following code snippet imports both dplyr and ggplot2 and prints three columns for female passengers over the age of 50 embarked in Southampton:

RStudio Cloud – How to Get Started For Free (13)

Image 12 – Data manipulation with dplyr

New to dplyr? Get up to speed with our dpylr tutorial.

It works just in your regular RStudio desktop IDE. Onto the visualization now. We’ll use ggplot2 to draw a histogram of the Age column:

RStudio Cloud – How to Get Started For Free (14)

Image 13 – Data visualization with ggplot2

Want to learn more about histograms with ggplot2? We have a complete ggplot2 guide you can follow.

Long story short – there’s no functionality limitation in RStudio Cloud. You can do anything you would normally do in the desktop or server versions.

R Markdown in RStudio Cloud

R Markdown allows you to create reproducible documents around your data analysis which you can then export as HTML, PDF, or Word files. Think of it as a notebook – your text, code, and code output are presented visually in an easy-to-follow format.

To get started, click on FileNew FileR Markdown (It might ask you to install missing packages on a first run):

RStudio Cloud – How to Get Started For Free (15)

Image 14 – Creating a new R Markdown file in RStudio Cloud

A modal window will pop up asking you to provide a title, author, and a default output format for your markdown document:

RStudio Cloud – How to Get Started For Free (16)

Image 15 – R Markdown document details

Once you click on OK, you’ll have access to the R Markdown file. We won’t do anything to modify it today, but we will show you how to export it. Click on the Knit icon and choose the output format. We’ll go with PDF today:

RStudio Cloud – How to Get Started For Free (17)

Image 16 – Exporting R Markdown files

You’ll see a new PDF file in your Files menu after a couple of seconds. It will also open the document automatically. Here’s what it looks like:

RStudio Cloud – How to Get Started For Free (18)

Image 17 – Exported R Markdown PDF

Nothing to write home about, but just enough to get you started. You now know how to work with R scripts and R Markdown files in RStudio Cloud. The only thing left to discuss is workspace sharing, so let’s cover that next.

How to Share Your RStudio Cloud Workspace

The biggest selling point of RStudio Cloud is the ease of collaboration. Multiple users or coworkers can work on the same project easily in the cloud. The collaboration option isn’t enabled by default, so you’ll have to change a couple of things.

First, click on the settings icon in the top right corner. Then go under Access, and change the access type to Everyone:

RStudio Cloud – How to Get Started For Free (19)

Image 18 – Changing access type

That takes care of the permissions. The next step is to send an invite to the users. To do so, click on the icon next to the settings icon, and select the Share Project Link option:

RStudio Cloud – How to Get Started For Free (20)

Image 19 – Sharing the project link

A new modal window will pop up. From here, you can enter an email of the person you want to collaborate with and an optional message. We won’t invite anyone today, but this is how you can do it.

RStudio Cloud – How to Get Started For Free (21)

Image 20 – Inviting collaborators to an RStudio Cloud project

That was easy, wasn’t it? You now know everything you need to get started with RStudio Cloud. We covered a lot of ground today, so here’s a short recap.

Conclusion

To summarize, if you and your team need to work on the same R project, RStudio Cloud could save you a lot of time. It’s a fully-hosted solution designed with collaboration and reproducibility in mind. There are also many tutorials on learning R in RStudio Cloud, so beginners can get started without setting up the environment locally.

It’s an amazing deal, even for the free tier. Sure, you’re limited to 1 GB of RAM and 25 hours of project time, but that shouldn’t be a problem if you’re just starting out. You can always scale from there, starting at just $5 per month.

What are your thoughts on RStudio Cloud? Have you or your organization migrated to the cloud? What was the primary reason? Please let us know in the comment section below or on Twitter – @appsilon.

Article RStudio Cloud – How to Get Started For Free comes from Appsilon | Enterprise R Shiny Dashboards.

Related

To leave a comment for the author, please follow the link and comment on their blog: r – Appsilon | Enterprise R Shiny Dashboards.

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.

RStudio Cloud – How to Get Started For Free (2024)

FAQs

RStudio Cloud – How to Get Started For Free? ›

Connect with any device to run R/RStudio with a browser over the Internet, including a tablet or a Chromebook. https://rstudio.cloud/ Create a free account at the prompt, and you are ready to go. Organize your analyses by project, maybe one project for all your homework assignments.

Is RStudio Cloud free? ›

We can use RStudio Cloud, which is free, and provides about 15 hours per month of free and functional computing time in a virtual RStudio environment.

Can you use RStudio for free? ›

Get started with RStudio on Posit Cloud for free . If you're a professional data scientist looking to download RStudio and also need common enterprise features, don't hesitate to book a call with us . Want to learn about core or advanced workflows in RStudio?

How to set up RStudio Cloud? ›

Open your web browser of choice and navigate to https://rstudio.cloud.
  1. Click on Sign Up to create your account.
  2. On the next page, make sure you have the free plan selected and click on Sign up .
  3. To finalise the registration process, you are required to provide your credentials.

How do I get started with R and RStudio? ›

No one starting point will serve all beginners, but here are 6 ways to begin learning R.
  1. Install , RStudio, and R packages like the tidyverse. ...
  2. Spend an hour with A Gentle Introduction to Tidy Statistics In R. ...
  3. Start coding using RStudio. ...
  4. Publish your work with R Markdown. ...
  5. Learn about some power tools for development.

What is the difference between RStudio and RStudio Cloud? ›

RStudio is a free, open source application. It is available in two formats: RStudio Desktop and RStudio Cloud. RStudio desktop is a regular desktop application that runs on Windows, MacOS or Linux. RStudio Cloud runs on a remote server and allows accessing RStudio through a web browser.

Is RStudio Cloud worth it? ›

Advantages of RStudio Cloud

RStudio Cloud makes it easy for anyone to practice, share, teach and learn data science. It analyses the data using RStudio directly from the browser. You can easily share projects with your team, class or workshop. It includes interactive tutorials to learn the basics of data science.

Do I need to pay for RStudio? ›

R is open source (i.e., free) software. There are different versions for R, Mac, and Linux. Download RStudio here. RStudio is also open source (i.e., free) software.

Is there a free version of R? ›

R is a free statistical software package heavily influenced by S. It can be installed on Linux, Windows and MacOS.

Where can I download RStudio for free? ›

You can download RStudio from https://www.rstudio.com/. Click the Download RStudio button near the top of the page. You will want to download the Open Source Edition of RStudio Desktop. This is the free version of the application.

How do I run RStudio on Google cloud? ›

Here's a step-by-step approach on how to configure a fully functional R Studio Server on Google Cloud:
  1. Configure a virtual machine instance (Ubuntu OS) on Google Cloud.
  2. Install R and R Studio Server on the Virtual Machine.
  3. Create users and groups.
  4. Schedule and run R scripts using cronR package.

How much does RStudio cost? ›

RStudio Desktop has a free version and offers a free trial. RStudio Desktop paid version starts at US$4,975.00/year.

What is an advantage of using the RStudio in the cloud? ›

With RStudio Cloud, there is almost nothing to configure and you do not need dedicated hardware, installation or annual purchase contract required. Individual users, instructors and students only need a browser to do, share, teach and learn data science.

Do I need to download R before RStudio? ›

Even if you use RStudio, you'll still need to download R to your computer. RStudio helps you use the version of R that lives on your computer, but it doesn't come with a version of R on its own.

Do I need both R and RStudio? ›

RStudio combines a source code editor, build automation tools and a debugger. We recommend you install both R and RStudio on your personal computer.

Is there a difference between R and RStudio? ›

RStudio is actually an add-on to R: it takes the R software and adds to it a very user-friendly graphical interface. Thus, when one uses RStudio, they are still using the full version of R while also getting the benefit of greater functionality and usability due to an improved user interface.

Is there a free version of RStudio connect? ›

There's a free version, so no risks to try it out. RStudio Connect is a publishing platform to share stuff created with R.

Is R Programming free to use? ›

R is a free, open-source programming language, meaning anyone can use, modify, and distribute it. It was initially written by Ross Ihaka and Robert Gentleman (also known as R&R) of the University of Auckland's Statistics Department.

Top Articles
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 5633

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.