Debian Codegraph @

tests/testthat/test-formats.Rmd

raw
1 ---
2 title: "Untitled"
3 author: "John Doe"
4 output:
5 html_document:
6 md_extensions: -autolink_bare_uris
7 bibliography: packages.bib
8 ---
9
10 ```{r setup}
11 knitr::opts_chunk$set(tidy = FALSE)
12 ```
13
14 ## Section One
15
16 ```{r}
17 summary(cars)
18 ```
19
20 ## Section Two
21
22 You can also embed plots, for example:
23
24 ```{r, echo=FALSE}
25 plot(cars)
26 ```
27
28 Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
29
30 ## Section Three
31
32 You can also print data frames
33
34 ```{r}
35 mtcars
36 ```
37
38 ```{r, include = FALSE}
39 knitr::write_bib("knitr", "packages.bib")
40 ```
41