Skip to Main Content

Data Science

R and RStudio

To use RStudio, you need to have R software installed in your system.

R is a programming language and software environment primarily used for statistical computing and graphics. It provides a wide variety of statistical and graphical techniques and is highly extensible.

RStudio, on the other hand, is an Integrated Development Environment (IDE) for R. It provides a more user-friendly interface for working with R, with features such as code editing, debugging, and visualization tools. RStudio makes it easier to write and organize your R code, visualize your data, and manage your R projects.

The connection between R and RStudio is that RStudio is a powerful tool that enhances the experience of working with R. It does not replace R, but rather complements it by providing a more user-friendly interface and additional features to streamline the workflow of R users. RStudio can be thought of as a wrapper around R, providing a more convenient and productive environment for writing, running, and managing R code.

Installing R and RStudio - Windows

To install both R and RStudio on Windows follow these steps:

Installing R:

  1. Download R: Go to the Comprehensive R Archive Network (CRAN) and download the latest version of R for Windows.
  2. Run the Installer: Once the download is complete, double-click the downloaded .exe file to run the installer.
  3. Follow Installation Steps: The R installer will guide you through the installation process. Accept the license agreement and choose the installation directory. The default options should be fine for most users.
  4. Installation Complete: After the installation is complete, you can proceed to install RStudio.

Installing RStudio

  1. Download RStudio: Go to the RStudio download page and download the RStudio Desktop version for Windows.
  2. Run the Installer: Double-click the downloaded .exe file to run the installer.
  3. Follow Installation Steps: The RStudio installer will guide you through the installation process. Accept the license agreement and choose the installation directory. The default options should be fine for most users.
  4. Installation Complete: After the installation is complete, you can launch RStudio from the Start menu or desktop shortcut.

That's it! You now have both R and RStudio installed on your Windows system. You can start using RStudio to write, run, and manage your R code.

Installing R and RStudio - macOS

To install both R and RStudio on macOS follow these steps:

Installing R:

  1. Download R: Go to the Comprehensive R Archive Network (CRAN) and download the latest version of R for macOS.
  2. Run the Installer: Once the download is complete, open the downloaded .pkg file to run the installer.
  3. Follow Installation Steps: The R installer will guide you through the installation process. Accept the license agreement and follow the prompts to install.
  4. Installation Complete: After the installation is complete, you can proceed to install RStudio.

Installing RStudio:

  1. Download RStudio: Go to the RStudio download page and download the RStudio Desktop version for macOS.
  2. Run the Installer: Open the downloaded .dmg file, then drag the RStudio application icon into your Applications folder.
  3. Installation Complete: After the installation is complete, you can launch RStudio from your Applications folder.

That's it! You now have both R and RStudio installed on your macOS system. You can start using RStudio to write, run, and manage your R code.

Footer for USD LibGuide v2.0