knitr default typesetting:
"The chunk optionout.width
is set to'\\maxwidth'
by default if the output format is LaTeX."
"The chunk optionout.width
is set to'\\maxwidth'
by default if the output format is LaTeX."
---
title: "Development scrap concerning the input data"
output:
html_document:
toc: true
---
library(knitr)
knit2html('docs/clean.example.Rmd', options = c('toc', markdown::markdownHTMLOptions(TRUE)))
I followed the RSTUDIO advice on how to
customize markdown rendering.options(rstudio.markdownToHTML =I works, I can now use the RStudio button "knit html" or the shortcut CTRL+SHIFT+H and get an html file that includes a table of content!
function(inputFile, outputFile) {
require(markdown)
htmlOptions <- defaults="TRUE)<br" markdownhtmloptions=""> htmlOptions <- br="" c="" htmloptions="" toc=""> markdownToHTML(inputFile, outputFile, options = htmlOptions)
}
) ->->