I want to execute the following R chunk, but when I generate the PDF of the RMarkdown I don't want to include the Loading messages.
Knitr Setup chunk
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
knitr::opts_knit$set(progress=FALSE)
Load Packages
```{r, warning=FALSE, results='hide',message='hide'}
x <- c("ggmap", "rgdal", "rgeos", "maptools", "dplyr", "tidyr", "tmap")
lapply(x, library, character.only = TRUE) # load the required packages
```
Output I'm getting
Wanted Output
Only the chunk in the pdf without messages of loading packages.