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
There are two issues here:
First, the
Rdconvcommand only transforms one Rd file at a time; your question suggests that you want the full manual.Second, the
Rd2dvicommand is your friend. I just ran the following on a local package:That should be what you asked for.