Hi, I am creating a pdf document from Rmarkdown. And an expected blank page is created when I set warning = FALSE
.
When I set warning = TRUE
, everything is ok, but the warning message remains.
flile.Rmd
---
documentclass: ctexart
geometry: margin=1in
output:
rticles::ctex: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE)
library(tidyverse)
```
## Header
I need to type some foreign language, so i use ctex here. 对
```{r}
df <- tibble( mth = c('201901', '201902', '201903', '201904'),
value = c(NA, 99, 100, 98))
df$mth <- as.Date(paste0(as.character(df$mth), '01'), format='%Y%m%d') # convert numeric to date
plot <- ggplot(df, aes(x=mth, y=value)) +
geom_line()
```
## I am going to plot something now
```{r}
plot
```
```{r}
plot
```
Any idea to get rid of warning message while keep a good page formatting?
Thanks.