From xie at yihui.name  Wed Oct  9 22:34:13 2013
From: xie at yihui.name (Yihui Xie)
Date: Wed, 9 Oct 2013 15:34:13 -0500
Subject: [Rd] user defined macros in Rd files
In-Reply-To: <CAC2h7usETeFHChYavo-mCP=4rSRX+Jzxta=e=S=S2sR0_6AAUw@mail.gmail.com>
References: <CAC2h7usETeFHChYavo-mCP=4rSRX+Jzxta=e=S=S2sR0_6AAUw@mail.gmail.com>
Message-ID: <CANROs4er+wdYVQ3MBS7tBn7uWTnot3VQPe3Tm-RTGhHo7AMm1A@mail.gmail.com>

+1. As an example, there are 91 instances of \newcommand{\CRANpkg} in
R source, and this number is still growing as I see:

$ grep "\\\\newcommand{\\\\CRANpkg}" -r . | wc
     91      91   10317

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Wed, Oct 9, 2013 at 2:57 PM, Kasper Daniel Hansen
<kasperdanielhansen at gmail.com> wrote:
> R-exts, in "2.13 User-defined macros", discusses user-defined macros.  Is
> it possible to have macros defined in one file, be used by another (within
> a package)?  This would increase the usefulness substantially, IMHO.
>
> Best,
> Kasper



[Rd] user defined macros in Rd files
Yihui Xie