Packages extend the capabilities of R. Packages contain libraries of code, functions, and data sets. While it is possible to create all your code from scratch, but why would you when someone has already done all the work for you.
Installing Packages in R is easy. For this lesson, we will install the HH package
Or, you can use the GUI (graphical user interface)
From the top menu, Packages>Install package(s)…
Select a CRAN mirror. I like to pick one close to me.
This lists all packages available on that mirror. I prefer this method as you can see a list of package and their proper spelling.
I chose HH.
Now just sit back and watch it install.