Loading R Libraries and Extensions
The R language can be extended by adding existing libraries.
install.packages("<package name>")# install external package
library(<package name>) # load external package
Once a package is installed, only the second step is needed in each instance.