Skip to content
Snippets Groups Projects
Commit afc123b2 authored by Marie Fourcot's avatar Marie Fourcot
Browse files

ajout de la possibilité de changer toc_depth

parent d2fcda24
Branches
No related tags found
No related merge requests found
bilille_report = function(code_folding = 'hide', highlight = 'textmate', ...) {
bilille_report = function(code_folding = 'hide', highlight = 'textmate', toc_depth = 4, ...) {
# locations of resource files in the package
pkg_resource = function(...) {
system.file(..., package = "templatebilille")
......@@ -11,7 +11,7 @@ bilille_report = function(code_folding = 'hide', highlight = 'textmate', ...) {
# call the base html_document function
rmarkdown::html_document(
toc = TRUE, toc_depth = 4, toc_float = TRUE, number_sections = TRUE,
toc = TRUE, toc_depth = toc_depth, toc_float = TRUE, number_sections = TRUE,
code_folding = code_folding, highlight = highlight,
css = css,
includes = rmarkdown::includes(before_body = header), ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment