I'd like to write a custom template for a bookdown project. From the documentation of the bookdown package I read that it is possible to replace the default template with a custom one, say my_custom_template.html, by including template: "my_custom_template.html" in the YAML header like
bookdown::gitbook:
template: my_custom_template.html
Doing so yields the following error:
Error in rmarkdown::html_document(..., extra_dependencies = c(extra_dependencies, :
formal argument "template" matched by multiple actual arguments
Calls: <Anonymous> ... do.call -> <Anonymous> -> html_document2 -> <Anonymous>
Execution halted
Error in eval(expr, envir, enclos) :
Failed to compile the book to bookdown::gitbook
It seems to me that the default template is hardcoded and thus cannot be overriden that easily.
Is there another way to include a custom template?