Difference between revisions of "R/C2/Installing-R-and-RStudio-on-Linux/English-timed"
From Script | Spoken-Tutorial
Sakinashaikh (Talk | contribs) |
Sakinashaikh (Talk | contribs) |
||
Line 96: | Line 96: | ||
|| 01:59 | || 01:59 | ||
|| In the '''Terminal, '''type capital '''R''' and press '''Enter'''. | || In the '''Terminal, '''type capital '''R''' and press '''Enter'''. | ||
− | |||
|- | |- | ||
Line 516: | Line 515: | ||
|| 11:15 | || 11:15 | ||
|| We give honorarium and certificates to those who do this. | || We give honorarium and certificates to those who do this. | ||
− | |||
|- | |- |
Latest revision as of 11:41, 8 May 2020
Time | Narration |
00:01 | Welcome to this tutorial on Installing R and RStudio on Linux. |
00:08 | In this tutorial, we will learn how to: |
00:11 | Install R version 3.4.4 |
00:16 | Install RStudio version 1.1.463 on Linux OS |
00:25 | Open RStudio interface |
00:28 | Install packages |
00:33 | To install R and RStudio, I am using, |
00:37 | Ubuntu Linux OS version 16.04. |
00:42 | A working Internet connection. |
00:46 | We will install R using the Terminal. |
00:50 | Press Ctrl + Alt + T keys together to open the Terminal on your computer. |
01:00 | Make sure that you are connected to the Internet. |
01:04 | In the Terminal prompt, type the following command and press Enter. |
01:13 | The machine will ask for the system password. |
01:17 | Type the password and press Enter. |
01:22 | The installation for R begins. |
01:26 | Type Y and press Enter to continue the installation process whenever prompted. |
01:34 | We will wait until the installation is complete. |
01:39 | R is now installed on our machine. |
01:43 | I will clear the Terminal before moving further. |
01:48 | In the Terminal, type clear and press Enter. |
01:54 | Let us check if the installation of R is successful. |
01:59 | In the Terminal, type capital R and press Enter. |
02:05 | R is launched. |
02:08 | In the Terminal, scroll up to know the version of R. |
02:13 | We can see that R version 3.4.4 has been installed. |
02:20 | Let us scroll down. |
02:23 | Here, we can run the commands by using the command-line interface. |
02:29 | Let us perform some mathematical operations using R. |
02:35 | We will compute the value of mathematical constant e. |
02:40 | Remember, e is the base of the natural logarithm. |
02:46 | In the Terminal, type exp followed by 1 in parentheses and press Enter. |
02:56 | The required value is displayed. |
03:00 | It means that R has been installed successfully. |
03:05 | Now, we will proceed to install RStudio. |
03:10 | For this, we need to quit the current session of R. |
03:16 | In the Terminal, type q followed by parentheses and press Enter. |
03:24 | It asks whether you want to save the workspace image. |
03:30 | As we have nothing to save, type n and press Enter. |
03:37 | I will clear the Terminal before moving further. |
03:42 | In the Terminal, type clear and press Enter. |
03:48 | Now, we will install RStudio version 1.1.463. |
03:56 | For this, we need to download the corresponding d e b file using the w get command. |
04:04 | Let us install the w get utility first. |
04:09 | In the Terminal, type the following command and press Enter. |
04:17 | We will wait until the installation of w get is complete. |
04:23 | w get is now installed on the machine. |
04:28 | I will clear the Terminal before moving further. |
04:33 | We will change the working directory to Home. |
04:38 | In the Terminal, type cd and press Enter. |
04:44 | Let us download the d e b file for RStudio version 1.1.463. |
04:53 | In the Terminal, type the following command and press Enter. |
05:00 | We will wait until the d e b file has been downloaded. |
05:07 | The d e b file has been downloaded. |
05:11 | I will clear the Terminal again. |
05:15 | Now, we need to install g d e b i utility. |
05:21 | This will allow us to install d e b files on our machine. |
05:27 | In the Terminal, type the following command and press Enter. |
05:34 | We will wait until the installation of g d e b i is complete. |
05:41 | g d e b i has been installed. |
05:46 | I will clear the Terminal. |
05:50 | Now, we will install the d e b file for RStudio using g d e b i utility. |
06:00 | In the Terminal, type the following command and press Enter. |
06:07 | It will ask Do you want to install the software package? |
06:13 | Press y to continue. |
06:15 | We will wait until the installation of RStudio is complete. |
06:22 | RStudio has been installed. |
06:26 | I will clear the Terminal again. |
06:30 | Now we will verify whether RStudio has been installed successfully. |
06:37 | In the Terminal, type rstudio and press Enter. |
06:44 | RStudio is launched. |
06:47 | Now, we will run a plot command. |
06:51 | In the Console window, type plot. |
06:56 | Now in parentheses 1:5 and press Enter. |
07:04 | The required plot is generated. |
07:08 | In the right lower side of RStudio, click on Packages. |
07:14 | Now, we will install a few packages which will be required later in this series. |
07:21 | We will install |
07:23 | p l y r |
07:26 | MASS |
07:28 | ggplot2 and d p l y r |
07:34 | Let us switch to RStudio. |
07:38 | Make sure that you are connected to the Internet. |
07:42 | In the Console window, type the following command and press Enter. |
07:50 | We will wait until the installation is complete. |
07:55 | plyr package is now installed. |
08:00 | I will clear the Console before moving further. |
08:05 | Click in the Console window. |
08:08 | Now, press Ctrl + L keys together. |
08:14 | Now, we will install another package named as MASS. |
08:20 | Type the following command and press Enter. |
08:26 | We will wait until the installation is complete. |
08:30 | MASS package is now installed. |
08:35 | I will clear the Console window again. |
08:39 | Click in the Console window. |
08:42 | Press Ctrl + L keys together. |
08:47 | Now, we will install ggplot2 package. |
08:52 | In the Console window, type the following command and press Enter. |
09:00 | We will wait until the installation is complete. |
09:05 | Depending upon your speed of the Internet, it may take 4 to 5 minutes. |
09:12 | ggplot2 package is now installed. |
09:16 | I will clear the Console window again. |
09:20 | Click in the Console window. |
09:23 | Press Ctrl + L keys together. |
09:28 | Now, we will install dplyr package. |
09:32 | In the Console window, type the following command and press Enter. |
09:39 | We will wait until the installation is complete. |
09:44 | Depending upon the speed of the Internet, it may take 4 to 5 minutes. |
09:51 | dplyr package is now installed. |
09:55 | Let us summarize what we have learnt. |
09:59 | In this tutorial, we have learnt how to, |
10:03 | Install R version 3.4.4 |
10:08 | Install RStudio version 1.1.463 on Linux OS |
10:16 | Open RStudio interface |
10:20 | Install packages |
10:23 | The video at the following link summarises the Spoken Tutorial project. |
10:27 | Please download and watch it. |
10:31 | We conduct workshops using Spoken Tutorials and give certificates. |
10:37 | Please contact us. |
10:40 | Do you have questions in THIS Spoken Tutorial? |
10:44 | Choose the minute and second where you have the question. |
10:49 | Explain your question briefly. |
10:52 | Someone from the FOSSEE team will answer them. |
10:56 | Please visit this site. |
10:59 | Do you have any general/technical questions? |
11:04 | Please visit the forum given in the link. |
11:08 | The FOSSEE team coordinates coding of solved examples of popular books. |
11:15 | We give honorarium and certificates to those who do this. |
11:20 | For more details, please visit these sites. |
11:24 | The Spoken Tutorial project is funded by MHRD, Govt. of India |
11:31 | This is Sudhakar Kumar from IIT Bombay signing off. Thanks for watching. |