jimhester / knitrBootstrap

A framework to create bootstrap styled HTML reports from knitr Rmarkdown.
Other
274 stars 61 forks source link

custom.header option #60

Closed kevinykuo closed 10 years ago

kevinykuo commented 10 years ago

How does it work? I tried passing a file name, e.g. "myheader.html" in the same directoy but the resulting HTML doesn't include any of "myheader.html"s contents.

https://github.com/jimhester/knitrBootstrap/pull/52 @khughitt

khughitt commented 10 years ago

How are you specifying the location? The way I use it now is to set the parameter in the YAML block, e.g.:

output:
  knitrBootstrap::bootstrap_document:
    title: "TITLE"
    theme: flatly
    theme.chooser: true
    highlight.chooser: true
    custom.header: "resources/header.html"

This should result in any of the contents from the file being included before the closing </head> element.

kevinykuo commented 10 years ago

That worked, thanks!

I was trying to specify it via opts_knit$set().