RStudio Cloud - How to Get Started For Free

Estimated time:
time
min

RStudio Cloud is a hosted version of the well-known R programming 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. Note: At the time of writing this article, Posit PBC was RStudio PBC. RStudio services and products mentioned in the article below do not reflect the rebranding. 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! <blockquote>Are you a beginner RStudio user? <a href="https://appsilon.com/rstudio-shortcuts-and-tips/" target="_blank" rel="noopener noreferrer">Here’s our curated list of shortcuts and tips</a>.</blockquote> Table of contents: <ul><li><a href="#why-rstudio-cloud">Why Move R and RStudio to the Cloud?</a></li><li><a href="#getting-started">RStudio Cloud - Getting Started</a></li><li><a href="#new-project">How to Create a New Project in RStudio Cloud</a></li><li><a href="#working-with-data">How to Upload and Work With Data in RStudio Cloud</a></li><li><a href="#r-markdown">R Markdown in RStudio Cloud</a></li><li><a href="#collaboration">How to Share Your RStudio Cloud Workspace</a></li><li><a href="#conclusion">Conclusion</a></li></ul> <hr /> <h2 id="why-rstudio-cloud">Why Move R and RStudio to the Cloud?</h2> 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: <ul><li><strong>Learning R easily</strong> - RStudio Cloud comes with a couple of interactive <a href="https://analyticsindiamag.com/top-8-free-online-resources-to-learn-r-language/" target="_blank" rel="noopener noreferrer">learning materials</a> that will get you started with the fundamentals of data science in R.</li><li><strong>No installation required</strong> - Run code straight from the browser - no need to download, install, and configure R and RStudio locally.</li><li><strong>Reproducible environment</strong> - 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.</li><li><strong>Collaboration</strong> - You can easily share your insights with teammates in a private space.</li></ul> 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 - <strong>pricing</strong>. <h3>RStudio Cloud Pricing</h3> 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: <img class="size-full wp-image-12046" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f0460c4b5e759a9f480_rstudio-cloud-plan-options.webp" alt="Image 1 - RStudio Cloud plan optionsImage 1 - RStudio Cloud plan options" width="1908" height="1124" /> Image 1 - RStudio Cloud plan options As always, both the offerings and price of individual plans can change, so we recommend you check the <a href="https://rstudio.cloud/plans/compare" target="_blank" rel="noopener noreferrer">official listing</a>. 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. <h2 id="getting-started">RStudio Cloud - Getting Started</h2> You’ll have to register for a free account to get started with <a href="https://rstudio.cloud/" target="_blank" rel="noopener noreferrer">RSudio Cloud</a>. Head over to their website - here’s what you should see: <img class="size-full wp-image-12050" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f06ccf2ef0d95c46c07_rstudio-cloud-website.webp" alt="Image 2 - RStudio Cloud website" width="2904" height="2130" /> Image 2 - RStudio Cloud website Click on the <em>Sign Up</em> button in the top right corner and the following form will pop up: <img class="size-full wp-image-12048" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f066bb6e6a6629c0b3f_rstudio-cloud-sign-up-form.webp" alt="Image 3 - RStudio Cloud sign up form" width="2904" height="2130" /> 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: <img class="size-full wp-image-12042" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f08afc0ff7c6579d587_rstudio-cloud-dashboard.webp" alt="Image 4 - RStudio Cloud dashboard" width="2904" height="2130" /> Image 4 - RStudio Cloud dashboard <h2 id="new-project">How to Create a New Project in RStudio Cloud</h2> Once in the dashboard, you can click on the <em>New Project </em>- <em>New RStudio Project </em>to get started: <img class="size-full wp-image-12036" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f0848b83fcd2e55d022_new-project-in-rstudio-cloud.webp" alt="Image 5 - Creating a new project in RStudio Cloud" width="2904" height="2130" /> 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: <img class="size-full wp-image-12044" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f0a0a2ba062e1ba336f_rstudio-cloud-interface.webp" alt="Image 6 - RStudio Cloud interface" width="2904" height="2130" /> 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 <em>File</em> - <em>New File</em> - <em>R Script </em>as shown below: <img class="size-full wp-image-12020" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f0ad6bd062d7ff7fd58_creating-new-r-script.webp" alt="Image 7 - Creating a new R script" width="2904" height="2130" /> Image 7 - Creating a new R script We’ll see you in the next section where we’ll upload and explore some data. <h2 id="working-with-data">How to Upload and Work With Data in RStudio Cloud</h2> Uploading a dataset to RStudio Cloud is as simple as clicking on the <em>Upload</em> button in the <em>Files</em> tab (bottom right quadrant). Once there, click on <em>Choose file</em> and specify the path to your dataset. For demonstration purposes, we’re using the training subset of the <a href="https://www.kaggle.com/c/titanic/data?select=train.csv" target="_blank" rel="noopener noreferrer">Titanic dataset</a>: <img class="size-full wp-image-12056" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f0cc328baac9ee01737_uploading-dataset-to-rstudio-cloud.webp" alt="Image 8 - Uploading a dataset to RStudio Cloud" width="2904" height="2130" /> 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: <ol><li><strong>Import dataset functionality</strong> - Click on the <em>Import Dataset</em> button under Environment in the top right quadrant.</li><li><strong>R’s CSV reader</strong> - Use a dedicated R package to load CSV files.</li></ol> We’ll opt for the first option today. Here’s what you should see: <img class="size-full wp-image-12034" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f0df638169cb256caae_loading-a-dataset-in-r-env.webp" alt="Image 9 - Loading a dataset into the R environment" width="2904" height="2130" /> 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: <img class="size-full wp-image-12054" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f0f6bdc8f59ff86cdda_succesful-import.webp" alt="Image 10 - Dataset successfully imported to RStudio Cloud" width="2904" height="2130" /> 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 <code>dplyr</code> and <code>ggplot2</code>. Run the following commands from the R console: <script src="https://gist.github.com/darioappsilon/580164a883734404921e8c0ca4ed0e2a.js"></script> <img class="size-full wp-image-12030" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f0f6bd9d78607d4695b_installing-dplyr-and-ggplot.webp" alt="Image 11 - Installing dplyr and ggplot2 R packages" width="2904" height="2130" /> Image 11 - Installing dplyr and ggplot2 R packages And now let’s import and use the packages. The following code snippet imports both <code>dplyr</code> and <code>ggplot2</code> and prints three columns for female passengers over the age of 50 embarked in Southampton: <script src="https://gist.github.com/darioappsilon/f30f5616aab454722d38db5bd4027fc5.js"></script> <img class="size-full wp-image-12022" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f11e4bb5dd95327c4a1_data-manipulation-with-dplyr.webp" alt="Image 12 - Data manipulation with dplyr" width="2904" height="2130" /> Image 12 - Data manipulation with dplyr <blockquote>New to dplyr? Get up to speed with our <a href="https://appsilon.com/r-dplyr-tutorial/" target="_blank" rel="noopener noreferrer">dpylr tutorial</a>.</blockquote> It works just in your regular RStudio desktop IDE. Onto the visualization now. We’ll use <code>ggplot2</code> to draw a histogram of the <code>Age</code> column: <script src="https://gist.github.com/darioappsilon/20912c554f2978a0c5920fb5a170f37c.js"></script> <img class="size-full wp-image-12024" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f114d7961f826700760_data-visualization-with-ggplot2.webp" alt="Image 13 - Data visualization with ggplot2" width="2904" height="2130" /> Image 13 - Data visualization with ggplot2 <blockquote>Want to learn more about histograms with ggplot2? We have a <a href="https://appsilon.com/ggplot2-histograms/" target="_blank" rel="noopener noreferrer">complete ggplot2 guide you can follow</a>.</blockquote> 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. <h2 id="r-markdown">R Markdown in RStudio Cloud</h2> 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 <em>File</em> - <em>New File</em> - <em>R Markdown </em>(It might ask you to install missing packages on the first run): <img class="size-full wp-image-12040" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f132a228de4b21eb88a_rmarkdown-file-in-rstudio-cloud.webp" alt="Image 14 - Creating a new R Markdown file in RStudio Cloud" width="2904" height="2130" /> 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: <img class="size-full wp-image-12038" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f142ae89d4dce37fd05_rmarkdown-details.webp" alt="Image 15 - R Markdown document details" width="2904" height="2130" /> Image 15 - R Markdown document details Once you click on <em>OK</em>, 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 <em>Knit</em> icon and choose the output format. We’ll go with PDF today: <img class="size-full wp-image-12028" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f166bb6e6a6629c17a2_exporting-rmarkdown-files.webp" alt="Image 16 - Exporting R Markdown files" width="2904" height="2130" /> Image 16 - Exporting R Markdown files You’ll see a new PDF file in your <em>Files</em> menu after a couple of seconds. It will also open the document automatically. Here’s what it looks like: <img class="size-full wp-image-12026" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f16cd7330b395c6c05f_exported-rmarkdown-pdf.webp" alt="Image 17 - Exported R Markdown PDF" width="2364" height="2010" /> 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. <h2 id="collaboration">How to Share Your RStudio Cloud Workspace</h2> 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 <em>Access</em>, and change the access type to <em>Everyone</em>: <img class="size-full wp-image-12018" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f176bdc8f59ff86d7e1_change-access-type.webp" alt="Image 18 - Changing access type" width="2904" height="2130" /> 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 <em>Share Project Link</em> option: <img class="size-full wp-image-12052" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f19369f5360b2ada5eb_sharing-project-link.webp" alt="Image 19 - Sharing the project link" width="2904" height="2130" /> 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. <img class="size-full wp-image-12032" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01f1a307dbcdd40b030d5_inviting-collaborators-in-cloud-project.webp" alt="Image 20 - Inviting collaborators to an RStudio Cloud project" width="2904" height="2130" /> 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. <h2 id="conclusion">Conclusion</h2> 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. <em>What are your thoughts on RStudio Cloud? Have you or your organization migrated to the cloud? What was the primary reason? </em>Please let us know in the comment section below or on Twitter - <a href="https://twitter.com/appsilon">@appsilon</a>.

Contact us!
Damian's Avatar
Damian Rodziewicz
Head of Sales
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Have questions or insights?
Engage with experts, share ideas and take your data journey to the next level!
Join Slack
Explore Possibilities

Take Your Business Further with Custom Data Solutions

Unlock the full potential of your enterprise with our data services, tailored to the unique needs of Fortune 500 companies. Elevate your strategy—connect with us today!

Talk to our Experts
r
community
r community
rstudio
tutorials