Recall & Review
beginner
What is RStudio?
RStudio is a user-friendly interface for R programming. It helps you write, run, and debug R code easily.
Click to reveal answer
beginner
Name the main panels in the RStudio interface.
The main panels are: Source (where you write code), Console (where code runs), Environment/History (shows variables and past commands), and Files/Plots/Packages/Help (for managing files, viewing plots, packages, and help).
Click to reveal answer
beginner
How do you install RStudio on your computer?
First, install R from CRAN (https://cran.r-project.org). Then, download and install RStudio from https://posit.co/download/rstudio-desktop/. Follow the installation steps for your operating system.
Click to reveal answer
beginner
What is the purpose of the Console panel in RStudio?
The Console panel runs your R commands immediately. It shows results and error messages, helping you test and explore your code.
Click to reveal answer
beginner
How can you create a new R script in RStudio?
Click on File > New File > R Script. This opens a new tab where you can write and save your R code.
Click to reveal answer
Which panel in RStudio shows the variables you have created?
✗ Incorrect
The Environment panel displays all the variables and data objects currently in your R session.
Before installing RStudio, what must you install first?
✗ Incorrect
RStudio is an interface for R, so you need to install R first from CRAN.
How do you run a line of code in the Source panel?
✗ Incorrect
Pressing Ctrl + Enter sends the current line or selection to the Console to run.
Where can you find help documentation in RStudio?
✗ Incorrect
The Help panel shows documentation and help files for R functions and packages.
What file extension do R scripts usually have?
✗ Incorrect
R scripts are saved with the .R extension.
Describe the steps to install and open RStudio on your computer.
Think about what you need before RStudio and where to get the software.
You got /4 concepts.
Explain the purpose of the four main panels in RStudio.
Imagine you are coding and need different views for writing, running, and checking your work.
You got /4 concepts.