Open-Systems-Pharmacology / OSPSuite.ReportingEngine

R implementation of the reporting engine
https://www.open-systems-pharmacology.org/OSPSuite.ReportingEngine/
Other
5 stars 5 forks source link

PDFs not created automatically? #1284

Open PavelBal opened 1 week ago

PavelBal commented 1 week ago

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?

pchelle commented 1 week ago

We did not implement the PDF conversion of the final report @Yuri05 , is the feature required ?

So far 2 solutions:

[!TIP] Convert your md document into pdf using rmarkdown::render() This is the simplest and easiest way, however there is a trick as rmarkdown converts from Rmd files First, copy your file and provide a Rmd extension, then simply render the Rmd into pdf

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()
PavelBal commented 1 week ago

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.