---
title: "`opera` package"
author: "Pierre Gaillard and Yannig Goude"
date: "`r Sys.Date()`"
output: 
  rmarkdown::html_document
vignette: >
  %\VignetteIndexEntry{`opera` package}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r echo=FALSE}
suppressPackageStartupMessages({
  suppressMessages({
    suppressWarnings({
      library("knitr")
      library("htmltools")
    })
  })
})


knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE,
  warning = FALSE,
  message = FALSE,
  imgcenter = TRUE, 
  fig.width = 6,
  fig.height = 4,
  out.width="50%", 
  dpi = 96, 
  fig.retina=1,
  cache.path = "../inst/cache/"
)
knitr::knit_hooks$set(imgcenter = function(before, options, envir){
  if (before) {
    HTML("<p align='center'>")
  } else {
    HTML("</p>")
  }
})
readme <- FALSE
```

```{r child = "../inst/rmd/example.Rmd"}
```
