How to create RStudio Cloud account and installing all the packages

This class will teach you how to use RStudio. You will be able to use this software on your browser.

You need to have a RStudio (Posit) Cloud account. The new name of RStudio Cloud is Posit. We will use the name of RStudio Cloud and Posit interchangeably.

Assignment video

The video below shows how to complete this assignment from start to finish.

Do not submit this assignment without watching the video and read the instructions together.

Assignment instructions

1

RStudio website

  1. Go to https://posit.cloud/plans/free and make sure you choose “free.”

  2. Click "Sign up."

2

School email address and a new password

  1. Use your school email address.

  2. Put a password (at least 10 characters). You will share your password with me, so note it somewhere down. As you see I will have access to your password. That's why you should not use this password somewhere else. You must:

    1. Use upper and lower case letters

    2. Use numbers

    3. Use special characters

  1. DO NOT use “Sign up with Google." Not now, not during the semester.

  2. Click "Sign up."

3

Verification

  1. Go to your school email inbox and click “Verify.”

  2. You will be directed to https://posit.cloud. If not, click on the link.

4

New project (RStudio labs)

  1. Click "New Project."

  2. Choose "New RStudio Project."

    1. You will wait 10-15 second while RStudio deploys the project. If it takes longer, refresh your page.

  3. On the new screen, click on “Untitled Project” and type “RStudio labs”.

Note: In previous semesters, many students mistakenly created a separate project for each lab. This is incorrect. You will not create a new project for each lab. Instead, you will always work within the existing 'RStudio labs' project throughout the course.

5

Download the specific R script file for this assignment

  1. Do not click on this file. You will upload it to RStudio in the next step.

6

Upload that R script file to RStudio

  1. Click "Upload" on RStudio.

  2. Click "Choose file." Find the R script file you just downloaded (script_installing packages.R) in the previous step and click “Open.”

A screenshot of the RStudio interface showing the Upload Files dialog open. The dialog displays the target directory /cloud/project, with a red callout highlighting the Choose File button and another highlighting the Upload button in the Files pane, indicating how to upload files into an RStudio cloud project.
7

Install and load packages

  1. After completing the previous step, you will see "script_installing packages.R" under "Files."

    1. Click on "script_installing packages.R."

  2. As soon as you click on "script_installing packages.R," you will see the content of this file on the left side.

    1. Highlight all the lines under the “Install and load packages.”

  3. Click "Run."

A screenshot of the RStudio interface demonstrating how to install packages. The Files pane highlights a script named script_installing packages.R (labeled 1). In the Source pane, a block of code for installing and loading packages is highlighted in red (labeled 2). A large red circle emphasizes the Run button at the top of the Source pane (labeled 3), indicating that the user should select the highlighted code and click Run to execute it.
8

Wait

This process will install all the packages we’ll be using throughout the semester. This process may take 15-20 minutes or shorter depending on your internet connection. This is a one-time process.

You won't wait this long again during the semester.

  1. You will see a STOP sign.

  2. And, codes are running in the console. You should wait until the STOP sign in the console disappears and no more code is running in the console.

  3. During this process, if you see the pop-up window above (Updating Loaded Packages), click “No” every single time.

9

Load data

  1. When the process above is completed, scroll down on the script file. Highlight all the lines under the “Load data.”

  2. And, click "Run."

  3. When the process above is completed, you should see “gss” and “key” under the “Environment” part.

  4. Take a screenshot of this view as you will submit this view to Canvas.

A screenshot of the RStudio interface showing how to load data using an R script. In the Source pane, a block of code labeled “Load data” is highlighted in red (label 1). The Run button at the top of the Source pane is circled and pointed out (label 2), indicating how to execute the selected code. In the Environment pane on the right, two newly loaded objects—gss and key—are highlighted (label 3), confirming that the data were successfully loaded.
10

Submission to Canvas

Click on "[gr] RStudio lab assignment: Account and packages" under the "getting ready for the class" Module on Canvas.

There are two questions:

  1. Paste your email address and the new password

  2. Upload the screenshot showing your RStudio view with "gss" and "key." Your screenshot should look like the image above.

Last updated