To install a package in R, the function to be used is install.packages. Let say we want to install the ggplot2 package, simply code this with the following:
To install more than one package, utilize the concatenate function, c