[R-pkg-devel] Macros in Rd files.

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Nov 9 11:06:34 CET 2017


Note the % may be a comment?

Uwe


On 09.11.2017 06:05, Rolf Turner wrote:
> 
> 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
>



More information about the R-package-devel mailing list