Installing Libraries
- Click on packages tab as shown below:
Figure 0.7: Packages in R Studio
- Select the packages that needs to be installed. The package will be attached on the left as shown below:
Figure 0.8: Attaching the package MASS
- Now the function of this library can be used. To install packages that are not displayed in the above, click on the Install option:
Figure 0.9: Install option
- Type the package you would want to install. For instance, select ggplot2 and click Install:
![Figure 0.10: Install packages pop-up](https://static.packt-cdn.com/products/9781838550134/graphics/C12775_00_10.jpg)
Figure 0.10: Install packages pop-up
The status of the installation of the package can be viewed in the console.
Alternatively, the install.packages("packagename") can also be used.