Commit bb789256 authored by Holger Brandl's avatar Holger Brandl

fix header inclusion

parent 79310cc3
...@@ -80,7 +80,7 @@ opts_chunk$set( ...@@ -80,7 +80,7 @@ opts_chunk$set(
) )
rmarkdown::render(input=tmpScript,output_file=str_replace(basename(r_script), ".R", ".html"), rmarkdown::render(input=tmpScript,output_file=str_replace(basename(r_script), ".R", ".html"),
output_format=rmarkdown::html_document(toc = opts$toc, keep_md=T, pandoc_args=paste("--include-in-header=", tempfile)), output_format=rmarkdown::html_document(toc = opts$toc, keep_md=T, pandoc_args=paste0("--include-in-header=", jsAddons)),
output_dir=getwd(), output_dir=getwd(),
output_options=list(toc="yes") output_options=list(toc="yes")
) )
......
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
## [rmarkdown@rstudio](http://rmarkdown.rstudio.com/) ## [rmarkdown@rstudio](http://rmarkdown.rstudio.com/)
rmarkdown::render(input="/Users/brandl/Dropbox/projects/snippets/R/rmarkdown/test_doc.R", rmarkdown::render(input="/Users/brandl/Dropbox/projects/snippets/R/rmarkdown/test_doc.R",
output_format=rmarkdown::html_document(toc = T, keep_md=T, pandoc_args="--include-in-header=/var/folders/n4/vdks_qcx54db16yj2lg665lm0000gp/T//RtmpysrYQU/file202b60316743.js"), # output_format=rmarkdown::html_document(toc = T, keep_md=T, pandoc_args="--include-in-header=/var/folders/n4/vdks_qcx54db16yj2lg665lm0000gp/T//RtmpysrYQU/file202b60316743.js"),
# output_format=rmarkdown::html_document(toc = T, keep_md=T, pandoc_args="-H /var/folders/n4/vdks_qcx54db16yj2lg665lm0000gp/T//RtmpysrYQU/file202b60316743.js"), output_format=rmarkdown::html_document(toc = T, keep_md=T, pandoc_args="-H/var/folders/n4/vdks_qcx54db16yj2lg665lm0000gp/T//RtmpysrYQU/file202b60316743.js"),
# output_format=rmarkdown::html_document(toc = T, keep_md=T, pandoc_args="--include-in-header=/Users/brandl/test.js", self_contained=F),
output_dir=getwd(), output_dir=getwd(),
output_options=list(toc="yes")) output_options=list(toc="yes"))
......
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