From Kurt.Hornik at wu.ac.at  Wed Oct  4 09:56:06 2017
From: Kurt.Hornik at wu.ac.at (Kurt Hornik)
Date: Wed, 4 Oct 2017 09:56:06 +0200
Subject: [Rd] R CMD Rd2pdf and macros
In-Reply-To: <CAC2h7ut5otC6KS8tMmjdetm9D+VbpOY+7HaKMxrwsSFO_LoDiw@mail.gmail.com>
References: <CAC2h7ut5otC6KS8tMmjdetm9D+VbpOY+7HaKMxrwsSFO_LoDiw@mail.gmail.com>
Message-ID: <22996.37910.840727.672617@hornik.net>

>>>>> Kasper Daniel Hansen writes:

Interesting.  When I take e.g. zTree as the last CRAN package using the
\packageTitle macro,

   R CMD Rd2pdf zTree

seems to work fine, but

   R CMD Rd2pdf zTree/man

gives

Converting Rd files to LaTeX Warning in parse_Rd("zTree/man/zTree-package.Rd", encoding = "unknown",  :
  zTree/man/zTree-package.Rd:6: unknown macro '\packageTitle'
Warning in parse_Rd("zTree/man/zTree-package.Rd", encoding = "unknown",  :
  zTree/man/zTree-package.Rd:9: unknown macro '\packageDescription'
Warning in parse_Rd("zTree/man/zTree-package.Rd", encoding = "unknown",  :
  zTree/man/zTree-package.Rd:13: unknown macro '\packageDESCRIPTION'
Warning in parse_Rd("zTree/man/zTree-package.Rd", encoding = "unknown",  :
  zTree/man/zTree-package.Rd:14: unknown macro '\packageIndices'
Warning in parse_Rd("zTree/man/zTree-package.Rd", encoding = "unknown",  :
  zTree/man/zTree-package.Rd:17: unknown macro '\packageAuthor'
Warning in parse_Rd("zTree/man/zTree-package.Rd", encoding = "unknown",  :
  zTree/man/zTree-package.Rd:18: unknown macro '\packageMaintainer'

Same in your case?

Best
-k


> When I run R CMD Rd2pdf on the man pages of a package, ie
>   R CMD Rd2pdf man

> I get

> Converting Rd files to LaTeX Warning in parse_Rd("man/mpra-package.Rd",
> encoding = "unknown", fragment = FALSE,  :
>   man/mpra-package.Rd:6: unknown macro '\packageTitle'
> Warning in parse_Rd("man/mpra-package.Rd", encoding = "unknown", fragment =
> FALSE,  :
>   man/mpra-package.Rd:9: unknown macro '\packageDescription'
> Warning in parse_Rd("man/mpra-package.Rd", encoding = "unknown", fragment =
> FALSE,  :
>   man/mpra-package.Rd:15: unknown macro '\packageAuthor'
> Warning in parse_Rd("man/mpra-package.Rd", encoding = "unknown", fragment =
> FALSE,  :
>   man/mpra-package.Rd:17: unknown macro '\packageMaintainer'
> Warning in parse_Rd("man/mpra-package.Rd", encoding = "unknown", fragment =
> FALSE,  :
>   man/mpra-package.Rd:24: unknown macro '\doi'

> It would appear that installed, system level macros are not read and used?

> Best,
> Kasper

> 	[[alternative HTML version deleted]]

> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] R CMD Rd2pdf and macros
Kurt Hornik