How do I convert Rd files to pdf for a package that I am creating in R?

Viewed 9933

I am writing a package in R and I would appreciate some example bash code to process the Rd files to latex and then to pdf.

It is in the directory ~/mypkg/dev/. I have generated the file structure and Rd templates.

from ~/mypkg/dev/man, I have tried

R CMD Rdconv -o mypkg-package.tex --type=latex mypkg-package.Rd

mypkg-package.tex file is generated, but

pdflatex mypkg-package.tex

generates tex without any preamble.

I have read the documentation in "Writing R extensions" and "R CMD Rdconv --help" on this subject, but no examples are provided.

Thank you

4 Answers
Related