[R-pkg-devel] Macros in Rd files.
Rolf Turner
r.turner at auckland.ac.nz
Thu Nov 9 06:05:33 CET 2017
I tried to define a macro to produce today's date (like unto the
"\today" command in LaTeX):
\newcommand{\today}{format(Sys.date(),"%d/%m/%Y")}
I put this into my *.Rd file just before invoking it. (Something like
"I don't think I will do any more work today (i.e. \today).")
When I did
R CMD build ldEst
to my package I got the warning:
> Warning: /tmp/RtmpL6sNnQ/Rbuild7f3036693218/ldEst/man/sampleCiLength.Rd:95:
> unexpected END_OF_INPUT '\keyword{ datagen }
Clearly I'm stuffing something up. Can some kind soul please provide me
with guidance as to what I *should* be doing?
Ta.
cheers,
Rolf Turner
--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
More information about the R-package-devel
mailing list