I have a vignette for my package which compiles to a nice PDF when compiled with Rscript -e \'rmarkdown::render(\"tmod.rmd\")\'. However, when I compile and ins
Rscript -e \'rmarkdown::render(\"tmod.rmd\")\'
When I asked the same question on the knitr google group, Yihui Xie (author of knitr) replied:
Use the vignette engine knitr::rmarkdown instead of knitr::knitr.
I'm not entirely sure I understand why, but it works. Here is a link to discussion on the knitr google group.