---
title: "Topic Guide Title"
date: "`r format(Sys.Date(), '%B %Y')`"
knit: bookdown::render_book
output: ratlas::topicguide_docx
bibliography: ["bib/refs.bib", "bib/packages.bib"]
biblio-style: apalike2
csl: csl/apa.csl
link-citations: yes
---

```{r setup, include=FALSE}
needed_packages <- c("ratlas", "knitr", "english")
load_packages <- function(x) {
  if (!(x %in% installed.packages())) {
    install.packages(x, repos = "https://cran.rstudio.com/")
  }
  
  suppressPackageStartupMessages(require(x, character.only = TRUE))
}
vapply(needed_packages, load_packages, logical(1))

options(knitr.kable.NA = "")
set_theme(font = "Arial Narrow", plot_margin = ggplot2::margin(0, 10, 10, 10))
```




###### Page break

# References

```{r write-packages, include = FALSE}
if (!file.exists("bib/packages.bib")) file.create("bib/packages.bib")
suppressWarnings(
  knitr::write_bib(c(.packages()), "bib/packages.bib")
)
```

<div id="refs"></div>
