The goal of weasydoc
is to convert R Markdown
to PDF
using WeasyPrint
or Prince
.
The usual way to convert R Markdown
documents to PDF
relies on LaTeX
.
The only caveat is that learning LaTeX
layout is not obvious.
Since pandoc
version 2.0 supports PDF
generation through HTML+CSS
, formatting PDF
document can now be achieved through CSS
. I think this may be quite easier...
This package suits my needs. Feel free to send PR.
devtools::install_github('RLesur/weasydoc')
rmarkdown::render('myfile.Rmd', weasydoc::wpdf_document_base(highlight = "pygments"))