I am interested in rendering multiple outputs using the knit button.
I have found this answer but I do not understand how to edit the knit:
call to do just that.
Thank you for any pointer,
Ivan
I am interested in rendering multiple outputs using the knit button.
I have found this answer but I do not understand how to edit the knit:
call to do just that.
Thank you for any pointer,
Ivan
OK, I got it, this is what I need:
knit: (function(inputFile, encoding) {
rmarkdown::render(inputFile,
encoding = encoding,
output_format = "all",
knit_root_dir = rprojroot::find_rstudio_root_file())
})
There might be a better way to find the project directory though, but I couldn't find anything.
Just use the answer from this answer as YAML header
---
title: "multiple outputs"
output:
word_document: default
html_document: default
knit: (function(inputFile, encoding) {
rmarkdown::render(inputFile, encoding = encoding,
output_format = "all") })
---
TEST