13.10 Moving between formats
As we have shown, it is relatively straightforward to move between HTML, Word and PDF when documents are simple. This becomes more difficult if you have a complicated document which includes lots of formatting.
For instance, if you use the package kableExtra()
to customise your tables, you can only export to HTML and PDF.
Knitting to Word will not currently work with advanced kableExtra
functions in your R Markdown document.
Similarly, flextable
and officer
are excellent packages for a love story between R Markdown and Word/MS Office, but they do not work for HTML or PDF.