Commit b23e91a4 authored by Holger Brandl's avatar Holger Brandl
Browse files

cont.

parent 29d2b5c6
## [rmarkdown@rstudio](http://rmarkdown.rstudio.com/)
rmarkdown::render(input="/Users/brandl/Dropbox/projects/snippets/R/rmarkdown/test_doc.R",
output_format=rmarkdown::html_document(toc = T, keep_md=F),
output_dir=getwd(),
output_options=list(toc="yes"))
\ No newline at end of file
$(document).ready(function () {
var codeElements = $(".r");
codeElements.filter("pre").before($('<button class="toggle_code">Show Code</button>'));
codeElements.filter("pre").hide()
$(".toggle_code").on("click", function () {
$(this).next().slideToggle()
if($(this).text()=="Hide Code"){
$(this).text("Show code")
}else {
$(this).text("Hide Code")
}
});
//$(".r").filter("pre:first")
});
Markdown is supported
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