---
title: "pdf2"
author: "name"
date: "`r Sys.Date()`"
output: 
  bookdown::pdf_document2:
    toc: TRUE

header-includes: 
  \usepackage{float}
  \let\origfigure\figure
  \let\endorigfigure\endfigure
  \renewenvironment{figure}[1][2] {
      \expandafter\origfigure\expandafter[H]
  } {
      \endorigfigure
  }
  \usepackage{longtable}
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(
  # These options can be set to FALSE (capitalization matters).
                      ########## set global options ############
    echo = FALSE,     # don't show code
    collapse = TRUE,  # keep code from blocks together (if shown)
    message = TRUE,   # show messages
    warning = TRUE,   # show warnings
    error = TRUE,     # show error messages
    comment = "",     # don't show ## with printed output
    dpi = 100,        # image resolution (typically 300 for publication)
    fig.width = 6.5,  # figure width
    fig.height = 4.0  # figure height
)

options(digits = 3) # round to three digits
```

```{r tidyverse, include=FALSE, message=FALSE}
library(conflicted)
conflict_prefer("filter", "dplyr", quiet = TRUE)
conflict_prefer("lag", "dplyr", quiet = TRUE)
suppressPackageStartupMessages(library(tidyverse))

# suppress "`summarise()` has grouped output by " messages
options(dplyr.summarise.inform = FALSE)
```

```{r tidymodels, include=FALSE}
suppressPackageStartupMessages(library(tidymodels))
tidymodels_prefer()
```

# 
