Introduction
We use install.packages() to add new tools (packages) to R so we can do more things easily.
When you want to use a new feature or function not built into R by default.
When following a tutorial that requires a specific package.
When you need to analyze data with special methods provided by a package.
When you want to create graphs or reports using packages made for that.
When you want to update or add packages to your R setup.