I'm using an Rmd notebook in RStudio and have attempted to set global options at the beginning of the document. I'm trying to suppress messages and warnings. I'm getting behavior in the inline source tab that is not what I expect. It behaves as expected (no warnings, code, or messages) in the html document produced. I'm looking for it to suppress messages and warnings both inline and in the produced html output.
Here is my global chunk:
```{r global options, include = FALSE}
knitr::opts_chunk$set(echo=FALSE, include = FALSE, warning=FALSE, message=FALSE)
```
Here is a chunk that loads libraries and the output from that:
```{r load libraries}
library(tidyverse)
library(gmodels)
library(readr)
library(lubridate)
library(questionr)
```
# ── Attaching packages ───────────────────────────────────────────── tidyverse 1.2.1 ──
# ✔ ggplot2 2.2.1 ✔ purrr 0.2.4
# ✔ tibble 1.4.2 ✔ dplyr 0.7.4
# ✔ tidyr 0.8.0 ✔ stringr 1.3.0
# ✔ readr 1.1.1 ✔ forcats 0.3.0
# ── Conflicts ──────────────────────────────────────────────── tidyverse_conflicts() ──
# ✖ dplyr::filter() masks stats::filter()
# ✖ dplyr::lag() masks stats::lag()
# Attaching package: ‘lubridate’
# The following object is masked from ‘package:base’:
# date
Perhaps I don't fully understand what I'm seeing but this sure looks like a message to me. Why isn't it being suppressed during execution?
Thanks.in the