Knitr lets you insert and execute R code in LaTeX documents and read data into a LaTeX template for dynamic output. You may know Knitr from…