Enforce PDF package vignette with knitr
问题 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 install the package, start R and type vignette("mypackagename") , a browser window opens with ugly looking HTML, without a title, without a table of contents and without references. However, if I compile the vignette manually to pdf before creating the package, it shows up just fine. What went wrong? Why is my PDF not generated automatically