`bookdown`/`rmarkdown`/`knitr`: Hook for execution after output document is finalized?

Multi tool use
Multi tool use


`bookdown`/`rmarkdown`/`knitr`: Hook for execution after output document is finalized?



My PDF-report generation using bookdown includes packing of result files into a zip archive, into which I (currently manually) integrate the PDF document itself as well.


PDF


bookdown


zip


PDF



Is there any hook that would enable automating the integration of the finished PDF? WOuld require a post-pdflatex command by knitr, I suppose ...


PDF


pdflatex


knitr





How do you currently trigger the knitting? The RStudio button? Is something along the lines of this stackoverflow.com/questions/39713618/… helpful?
– CL.
Jul 2 at 12:27





That looks interesting indeed ... off investigating.
– balin
Jul 2 at 15:33





You could also just write a function that calls rmarkdown::render and follow it by the code to add the PDF into the zip. If typing the name of the function is too hard, it could be an add-in to RStudio.
– user2554330
Jul 2 at 17:29


rmarkdown::render









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

TmW7 niJmMsXH,WVn,QvECIwRSMn5oYu1gyN,oACr7r4Rg
HyqQubr59NcKA 7s w,iZvbtqPYj 00vZnmW3RQZJ6BwkZii m7o8HHAvgkLAAo0isbUwcAmIlFkkYhFnKHHjlk

Popular posts from this blog

Rothschild family

Cinema of Italy