Skip to content

Commit

Permalink
use .r instead of .source for code chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Michonneau committed Jun 22, 2016
1 parent ea2a2ee commit 9bfebc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/chunk-options.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ opts_chunk$set(tidy = FALSE, results = "markup", comment = NA,
# The hooks below add html tags to the code chunks and their output so that they
# are properly formatted when the site is built.
hook_in <- function(x, options) {
stringr::str_c("\n\n~~~{.r}\n",
stringr::str_c("\n\n~~~\n",
paste0(x, collapse="\n"),
"\n~~~\n{: .source}\n\n")
"\n~~~\n{: .r}\n\n")
}

hook_out <- function(x, options) {
Expand Down

0 comments on commit 9bfebc4

Please sign in to comment.