Skip to content
Prev 2052 / 12125 Next

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

On 09/11/2017 5:06 AM, Uwe Ligges wrote:
Yes, and the body should be written in Rd markup, not R.  Working out 
the appropriate number of escapes is painful; I recommend trial and error.

This worked for me:

  \newcommand{\today}{\Sexpr{format(Sys.Date(),"\\\%d/\\\%m/\\\%Y")}}

Duncan Murdoch