R & RStudio

Software Installation Guide

Installation Requirements

  • Connection to the Internet

  • Installation requires elevated or admin access. (Ability to install applications and write to the Window’s Registry.)

Downloading R

Open a web browser. Go to https://www.r-project.org/.

Click the “CRAN” link on the left under the “Download” section.

Choose a download mirror closest to your geographical location. A location closer to you may offer faster download speeds.

Choose the Download link for your operating system.

Choose the ‘base’ or “install R for the first time” link.

Click the bold download link to download R.

Please install the latest available version of R. These instructions will guide you through the installation process regardless of the version number. If prompted save the file.

Navigate to your Downloads folder and double click on the downloaded installer file for R.

Click Yes to allow the program to make changes to your computer.

Select English, Click OK.

Click Next.

 

Leave the default installation path.

Click Next..

 

Leave the default options selected. Click Next.

Select Yes (customized startup).

Click Next..

Select SDI (separate windows).

Click Next.

Select HTML help.

Click Next.

Click Next.

Click Next.

Click Finish.

After the installation, launch R from the Windows Start menu.

Installing RStudio Desktop

Software Installation Guide

Important Notes:

RStudio requires R be installed first. Please see the previous section before proceeding with these installations.

Open a web browser and go to https://rstudio.com/products/rstudio/download/

Click Download under the RStudio Desktop, Open Source License version.

Click on the download Link for RStudio.

Please select the latest version available to install. This guide will guide you through the install process regardless of the version.

If prompted save the file.

Navigate to your Downloads folder and double click on the downloaded installer file for RStudio.

Click Yes in the User Access Control Window to permit the installer to proceed.

Click Next>.

Leave the default Destination Folder path.

Click Next>.

Click Install.

Click Finish.

Loading Packages

Open R and create a script to load the CRAN packages you use most often.

Here is an example of a console command that loads the most downloaded CRAN packages:

Paste the command below into an R Console and press the Enter key

install.packages(c("dplyr", "ggplot2", "tidyr", "shiny", "caret", "E1071", "plotly", "tidyquant", "cluster", "foreign", "stringr", "stringi", "reshape2", "devtools" ))
  1. Select the option to use a Personal Library.

  2. Choose a CRAN mirror closest to your physical location.

  3. Click OK

  4. Observe the Console window output. There is an error loading a package verify that the package name is correct, and / or try a different CRAN Mirror.

Related content

R Guide
R Guide
More like this
Downloading and Installing Respondus 4.0
Downloading and Installing Respondus 4.0
More like this
Installing rJava locally
Installing rJava locally
More like this

For more help, please contact our helpdesk at busn.help@uconn.edu