R/C2/Installing-R-and-RStudio-on-Windows/English
Title of the script: Installing R and RStudio on Windows
Author: Sudhakar Kumar (IIT Bombay)
Keywords: R, RStudio, Windows, packages, ggplot2, dplyr, video tutorial
Visual Cue’’’ | Narration’’’ |
Show slide
Opening Slide |
Welcome to this tutorial on Installing R and RStudio on Windows. |
Show slide
Learning Objective |
In this tutorial, we will learn how to:
|
Show slideSystem Specifications | To install R and RStudio, we will use
|
Now we will learn how to install R on the Windows 10. | |
Highlight Firefox on the machine | Open an Internet browser. I am using Firefox for browsing. |
Highlight the address bar of the firefox browser. | In the address bar type the following address and press Enter. |
Highlight Getting Started on the homepage of R Project | Under the tab Getting Started, click on download R link. |
Highlight CRAN Mirrors on the webpage | A page named CRAN Mirrors opens.
|
Highlight the mirror 0-Cloud on the webpage | Under the mirror 0-Cloud, click on the given link. |
Highlight The Comprehensive
R Archive Network on the webpage |
A new page The Comprehensive R Archive Network opens. |
Highlight Download and Install R on the webpage | Under the section Download and Install R, click on Download R for Windows. |
Highlight R for Windows on the webpage
|
A new page R for Windows opens.
|
Highlight base on the webpage | In the subdirectory named as base, click on the link install R for the first time. |
Highlight R-3.6.1 for Windows on the webpage | A new page R-3.6.1 for Windows opens. |
Highlight Download R 3.6.1 for Windows on the webpage | Click on the link Download R 3.6.1 for Windows. |
A save file dialog box opens. Click on the Save File button. | |
Highlight the Downloading icon in the upper pane of the browser | The exe file is being downloaded.
|
Highlight Downloads folder on the machine. | Double click on the downloaded exe file for R 3.6.1. |
Highlight User Account Control window on the machine.
|
It will open a prompt seeking your permission to begin the installation of R.
|
Highlight Select Setup Language window on the machine
Point to English.
|
Select Setup Language window opens.
By default, the language is set to English.
|
Highlight Setup - R for Windows 6.1 window on the machine
|
A window with important information opens.
|
Highlight Select Destination Location on the machine.
|
Select Destination Location window to install R opens.
|
Highlight Select Components on the machine
|
Select Components window to install R opens.
We will keep the default options. Click Next button to continue. |
Highlight Startup options on the machine
click Next to continue. |
Startup options window opens.
|
Highlight Select Start Menu folder on the machine.
|
Select Start menu Folder window opens.
We will keep the default options.
|
Highlight Select Additional Tasks on the machine
Click on Create a desktop shortcut. the checkbox.
|
Select Additional Tasks window opens.
In the window click on the checkbox for Create a desktop shortcut. Click Next to continue. |
Highlight Installing on the machine | We will wait until the installation of R is complete. |
Highlight Setup has finished installing R on the machine | Completing the R for Windows 3.6.1 Setup Wizard message appears.
The installation of R is now complete.
|
Highlight both R icons on the Desktop | We can see that the shortcuts to launch R have been created on the Desktop
There are two different icons, which refer to 32-bit and 64-bit installations. |
Highlight R 64-bit icon | Double click on the 64-bit icon. |
Highlight Version 3.6.1 (2019-07-05) in the command line interface for R | The command line interface for R opens. We can see that R Version 3.6.1 has been installed.
We will compute the value of mathematical constant e. Remember e is the base of the natural logarithm. |
exp(1)
Highlight [1] 2.718282 in the R command line interface |
Type exp followed by 1 in parenthesis and press Enter. The required value is displayed. It means that R has been installed successfully. |
q() | Now we will proceed to install RStudio. For this we need to quit the current session of R. Type q followed by parenthesis and press Enter. |
Highlight Save workspace image window | It asks whether you want to save the workspace image. As we have nothing to save click No to continue. |
Now, we will install RStudio version 1.1.463. | |
Highlight Firefox on the machine | Open an Internet browser. I am using Firefox for browsing. |
Highlight the address bar of the Google Chrome | Type the following address in the address bar and press Enter. |
Point to the page.
Highlight Download RStudio on the webpage |
RStudio home page opens.
Click on Download RStudio button. |
Highlight Choose your version of RStudio on the webpage | A page named Download RStudio opens. |
Highlight RStudio Desktop Open Source License on the webpage.
|
Scroll down and locate the RStudio Desktop Open Source License.
Under this license, click on the DOWNLOAD button. |
Highlight Installers for Supported Platforms on the webpage | You will be directed to Installers for Supported Platforms section. |
Highlight older version of RStudio on the webpage | Above this section, click on the link older
versions of RStudio. |
Highlight Older Versions of RStudio on the webpage | Older Versions of RStudio page opens. |
Highlight RStudio Desktop 1.1.463 on the webpage | Scroll down and locate the section RStudio Desktop 1.1.463. |
Highlight Windows on the webpage | Locate the operating system Windows and click on the Installer link next to it. |
A save file dialog box opens. Click on the Save File button. | |
Highlight the Downloading icon in the upper pane of the browser | The exe file for RStudio 1.1.463 is being downloaded. By default the exe file will be downloaded in the Downloads folder.
We will wait until the downloading is complete. The downloading is now complete. We will go to the Downloads folder. |
Highlight Downloads folder on the machine | Double click on the downloaded exe file for RStudio 1.1.463. |
Highlight User Account Control window on the machine | It will open a prompt seeking your permission to begin the installation of RStudio.
|
Highlight RStudio Setup on the machine
|
Welcome to the RStudio Setup Wizard window to begin the installation opens.
|
Highlight Choose Install Location on the machine.
Click Next to continue.
|
Choose Install Location window to install RStudio opens.
We will keep the default location and click Next to continue. |
Highlight Choose Start Menu folder on the machine
|
A Choose Start Menu folder window opens.
We will keep the default option as it is. Then click Install to continue. |
Highlight Installing on the machine | We will wait until the installation of RStudio is complete. |
Highlight RStudio has been installed on the machine.
|
Completing the RStudio Setup Wizard message opens.
|
Highlight Search on the machine | Go to the Start menu of your computer and search for RStudio.
|
Highlight RStudio window | RStudio is launched. |
[RStudio]
Ctrl + L |
We will clear the Console before moving further.
Click in the Console window and press Ctrl and L keys together. |
Highlight the greater than symbol in the Console window | Now, we will run a plot command. |
[RStudio]
plot(1:5) |
In the Console window, type plot and in parentheses 1:5 and press Enter. |
Highlight the plot in the Plots window | The required plot is generated. |
Highlight Packages in the interface of RStudio | In the right lower side of RStudio, click on Packages. |
Now, we will install a few packages which will be required later in this series. | |
Show slide
Installing Packages |
We will install
|
Let us switch to RStudio.
Make sure that you are connected to the Internet. | |
[RStudio]
install.packages("plyr") |
In the Console window, type the following command and press Enter.
|
Highlight DONE (plyr) in RStudio | plyr package is now installed. |
Cursor in the Console window of RStudio | I will clear the Console before moving further. |
[RStudio]
Ctrl + L |
Click in the Console window.
|
[RStudio]
install.packages("MASS") |
Now, we will install another package named as MASS.
|
Highlight DONE (MASS) in RStudio | MASS package is now installed. |
Cursor in the Console window of RStudio | I will clear the Console window again. |
[RStudio]
Ctrl + L |
Click in the Console window.
|
[RStudio]
install.packages("ggplot2") |
Now, we will install ggplot2 Package.
|
Highlight DONE (ggplot2) in RStudio | ggplot2 package is now installed.
|
Cursor in the Console window of RStudio | I will clear the Console window again. |
[RStudio]
Ctrl + L |
Click in the Console window.
|
[RStudio]
install.packages("dplyr") |
Now, we will install dplyr package.
|
Highlight DONE (dplyr) in RStudio | dplyr package is now installed. |
Let us summarize what we have learnt. | |
Show slide
Summary |
In this tutorial, we have learnt how to,
|
Show slide
About the Spoken Tutorial Project |
The video at the following link summarises the Spoken Tutorial project.
Please download and watch it. |
Show slide
Spoken Tutorial Workshops |
We conduct workshops using Spoken Tutorials and give certificates.
Please contact us. |
Show Slide
Forum to answer questions
|
Please post your timed queries in this forum. |
Show Slide
Forum to answer questions |
Do you have any general / technical questions?
Please visit the forum given in the link. |
Show Slide
Textbook Companion |
The FOSSEE team coordinates coding of solved examples of popular books.
For more details, please visit these sites. |
Show Slide
Acknowledgement |
The Spoken Tutorial project is funded by NMEICT, MHRD, Govt. of India |
Show Slide
Thank You |
This tutorial is contributed by Madhuri Ganapathi and Sudhakar Kumar from IIT Bombay. Thank you for watching. |