Open PavelBal opened 1 week ago
We did not implement the PDF conversion of the final report @Yuri05 , is the feature required ?
So far 2 solutions:
docx
can be exported manually as pdf
, the rendered document will use the same rendering as the docx.md
can be converted into pdf
, however you may lose some features compared to md
, html
or docx
(such as bookmarks)
there are different ways, the simplest I found is the one I describe below
[!TIP] Convert your
md
document intormarkdown::render()
This is the simplest and easiest way, however there is a trick asrmarkdown
converts fromRmd
files First, copy your file and provide aRmd
extension, then simply render theRmd
into
file.copy(from = "Report.md", to = "Report.Rmd")
rmarkdown::render(input = "Report.Rmd", output_file = "Report.pdf")
[!IMPORTANT] If not installed, you may require a pdf engine converting the intermediate LateX report into pdf. In the code below, you can install
{tinytex}
that will install it for you
install.packages("tinytex")
tinytex::install_tinytex()
Okay, thanks. I am converting using the Markdown add in in Visual Studio Code. Just was not sure if this is not supported or I forgot to enable it somewhere.
Please close the issue if this feature is not required.
Running a
workflow.R
I only get md and docx as outputs, but no PDFs. Is it by design, or do I have to enable PDF generation somewhere?