Knowledge Quiz: What are R and RStudio

Note
  • Click the check-mark button to check your answer.
  • Click the question-mark button to see an explanation of the solution.

What is R, most accurately described?

R is a programming language and software environment for working with data.

  • Wrong: Making plots is one thing you can do in R, but R itself is much broader than a single package.
  • Correct
  • Wrong: R is not spreadsheet software like Excel; you interact with it by writing code.
  • Wrong: That description matches RStudio, not R itself.

You’ve written some R code and you press “Run” inside RStudio. Which program actually executes the code and computes the result?

R is the engine that actually executes code and computes results. RStudio is the interface (the “dashboard”) that you type in and that sends your code to R.

  • Wrong: RStudio Desktop runs locally on your own machine using your local installation of R.
  • Correct
  • Wrong: RStudio is the interface around R; it sends your code to R to be executed.
  • Wrong: RStudio itself does not compute anything, it needs R to do that.

What is CRAN?

CRAN (the Comprehensive R Archive Network) is the official archive that hosts R and R packages, and it tests packages before publishing them.

  • Wrong: RStudio is developed by Posit, not by CRAN.
  • Correct
  • Wrong: R was based on the language S, not on CRAN.
  • Wrong: CRAN is an archive that hosts many packages; it isn’t a package itself.

What does it mean that R and RStudio are “open source”?

Open source means the source code is publicly available, and communities of developers and researchers can inspect, use, and improve it.

  • Wrong: Both R and RStudio are actively and regularly updated.
  • Wrong: Both are free and publicly available to anyone, not restricted to specific institutions.
  • Correct
  • Wrong: Open-source software is typically developed collaboratively by a community, not a single closed company.

An AI assistant can write R code for you. Given that, why does it still matter that you understand what R and RStudio each do?

AI tools can generate code, but they don’t install software, manage your files, or debug a broken local setup for you. You still need a working R/RStudio installation, and you need to be able to tell which part of the system (R, RStudio, or a package) is causing a problem.

  • Correct
  • Wrong: open source means the code is available to inspect and modify if you want to, not that you are required to rewrite it.
  • Wrong: someone (or something) still needs a working R/RStudio setup to actually run code, and problems still need to be diagnosed by a person.
  • Wrong: AI assistants can write R code regardless of whether RStudio is installed; RStudio is a convenience for you, not a requirement for code generation.
Back to top