简体   繁体   中英

How to prove that a PDF document is indeed generated from using the knitr library?

I'm currently working on an assignment from the Coursera Data Science Specialization course.

One of the requirements of this assignment is the result PDF report mus be generated using the knitr library.

What is the best solution to fulfill this requirements? One of the solutions I can think of is to do a sessionInfo output at the end of my report, but the maximum number of pages allowed for the report is 5 pages and I am trying to avoid doing this.

Any suggestions? Thanks very much!

Bruno's point is well-taken: the Producer line is where the info will be found. If there's a requirement that the document be produced by knitr, then whoever is interested in verifying that will know to look at the Producer info.

You can verify that easily enough with your own testing. Once you have generated your PDF output via knitr, open it in Acrobat or Reader, press Ctrl+D to bring up the Document Properties popup window, and select the Description tab. You should find knitr mentioning itself by name there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM