I am using bookdown to generate html and pdf at the same time. I would like to use dynamic tables (DT) in the html version, but a normal table in the pdf file. Is there a way to do this in markdown without having to have to separate files as input and using the yml file. Something like
if (output = html) {
DT...
}
if (output = "pdf"){
xlatex ...
}
THanks Renger