no longer uses rstudio's pandoc
set R_TEXI2DVICMD=texi2dvi so that options(texi2dvi) will be texi2dvi instead of /usr/bin/texi2dvi, which does not exist; then tools::texi2dvi() will use pdflatex to compile .tex documents
install rst2pdf for argparse