Skip to content

Commit

Permalink
Update sample file
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Sep 2, 2016
1 parent d9d6d5d commit 1521afb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions inst/sample_file/example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ output:
gallery: true
fig_width: 4
fig_height: 4
use_bookdown: true
---


Expand All @@ -31,6 +32,11 @@ opts_knit$set(width = 75)

# Code and verbatim

Test reference to section \@ref(verb).

Test reference to figure \@ref(fig:gghist).


## Syntax highlighting

Here is a sample code chunk, just to show that syntax highlighting works as expected.
Expand All @@ -42,7 +48,7 @@ not_null <- function (v) {
```


## Verbatim
## Verbatim {#verb}

Here is the structure of the `iris` dataset.

Expand Down Expand Up @@ -89,7 +95,7 @@ hist(rnorm(100))

Same with `ggplot2` :

```{r, fig.cap="Beautiful ggplot2 histogram, really"}
```{r gghist, fig.cap="Beautiful ggplot2 histogram, really"}
library(ggplot2)
d <- data.frame(x=rnorm(100))
ggplot(data=d) + geom_histogram(aes(x=x), bins = 30)
Expand Down

0 comments on commit 1521afb

Please sign in to comment.