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

前端 未结 4 594
悲&欢浪女
悲&欢浪女 2020-12-25 08:29

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 h

4条回答
  •  离开以前
    2020-12-25 09:08

    There are two issues here:

    First, the Rdconv command only transforms one Rd file at a time; your question suggests that you want the full manual.

    Second, the Rd2dvi command is your friend. I just ran the following on a local package:

    R CMD Rd2dvi --pdf --title='Test of foo' -o /tmp/foo.pdf man/*.Rd
    

    That should be what you asked for.

提交回复
热议问题