[Rd] R CMD Rd2pdf and macros
Kurt Hornik
Kurt.Hornik at wu.ac.at
Wed Oct 4 09:56:06 CEST 2017
>>>>> 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
More information about the R-devel
mailing list