Skip to content
Snippets Groups Projects
Unverified Commit 9bfebc4d authored by François Michonneau's avatar François Michonneau
Browse files

use .r instead of .source for code chunks

parent ea2a2eec
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment