Messy output when loading packages

Solution: When you load packages in R, the knitted document will automatically show associated messages as output in your knitted document. This can make your assignment look messy when you are loading a bunch of packages. To hide these messages, add message = FALSE into the R chunk where you load packages. See the example below.