Unverified Commit 9bfebc4d authored by Francois Michonneau's avatar Francois Michonneau
Browse files

use .r instead of .source for code chunks

parent ea2a2eec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {