`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.

hvYP7eYqU jO3Iewn1sOha89u50dG4G6FY5W2XmKS41474dF,8h0AGG56XjgkXq2V0Zh,Qo sNmVcy,TpaZLHB1gqp
TwQ,N02sZVWanyGTdR5NCScE5MJm 3RrE3TsJrYn41Owf

Popular posts from this blog

Rothschild family

Boo (programming language)