---
title: "Silence warnings"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{Silence warnings}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
```

## The `GDPuc.warn` option

You can silence all warnings thrown by `convertGDP` by setting the option `GDPuc.warn = FALSE`. 
This will affect all calls to `convertGDP` in the active R-session. 

```{r eval=FALSE}
options(GDPuc.warn = FALSE)
```


## The `replace_NAs` argument

One warning thrown by `convertGDP` comes from the addition of NAs in the return object due to missing conversion 
factors. If NAs are explicitly desired set `replace_NAs = NA`. This will silence the warning.
