Re: [Rd] user defined macros in Rd files

2014-06-27 Thread Yihui Xie
Hi Duncan, Thanks a lot for eventually implementing this and making the Rd world greener! https://github.com/wch/r-source/commit/ff3ea81ae87 Regards, Yihui -- Yihui Xie Web: http://yihui.name On Wed, Oct 9, 2013 at 3:55 PM, Duncan Murdoch wrote: > On 13-10-09 4:34 PM, Yihui Xie wrote: >> >> +

Re: [Rd] user defined macros in Rd files

2013-10-13 Thread Henrik Bengtsson
On Sat, Oct 12, 2013 at 3:58 PM, Duncan Murdoch wrote: > On 13-10-12 6:49 PM, R. Michael Weylandt wrote: >> >> >> >> On Oct 9, 2013, at 21:18, Duncan Murdoch wrote: >> >>> On 13-10-09 7:54 PM, Henrik Bengtsson wrote: On my related wishlist: A standardized mechanism to 'R CMD

Re: [Rd] user defined macros in Rd files

2013-10-12 Thread Duncan Murdoch
On 13-10-12 6:49 PM, R. Michael Weylandt wrote: On Oct 9, 2013, at 21:18, Duncan Murdoch wrote: On 13-10-09 7:54 PM, Henrik Bengtsson wrote: On my related wishlist: A standardized mechanism to 'R CMD build' for building man/*.Rd from any input format (e.g. roxygen and so on) analogously

Re: [Rd] user defined macros in Rd files

2013-10-12 Thread R. Michael Weylandt
On Oct 9, 2013, at 21:18, Duncan Murdoch wrote: > On 13-10-09 7:54 PM, Henrik Bengtsson wrote: >> >> >> On my related wishlist: A standardized mechanism to 'R CMD build' for >> building man/*.Rd from any input format (e.g. roxygen and so on) >> analogously how we can now build vignettes of an

Re: [Rd] user defined macros in Rd files

2013-10-09 Thread Duncan Murdoch
On 13-10-09 7:54 PM, Henrik Bengtsson wrote: On Wed, Oct 9, 2013 at 2:04 PM, Yihui Xie wrote: I mean, it sounds like a better idea to define \CRANpkg only once in one central place, and use it in base R, instead of defining it in every single Rd file, because it seems to be generally useful (is

Re: [Rd] user defined macros in Rd files

2013-10-09 Thread Henrik Bengtsson
On Wed, Oct 9, 2013 at 2:04 PM, Yihui Xie wrote: > I mean, it sounds like a better idea to define \CRANpkg only once in > one central place, and use it in base R, instead of defining it in > every single Rd file, because it seems to be generally useful (is 91 a > large number? maybe). > > Similarl

Re: [Rd] user defined macros in Rd files

2013-10-09 Thread Yihui Xie
I mean, it sounds like a better idea to define \CRANpkg only once in one central place, and use it in base R, instead of defining it in every single Rd file, because it seems to be generally useful (is 91 a large number? maybe). Similarly, when it comes to an add-on package, it will be nice if the

Re: [Rd] user defined macros in Rd files

2013-10-09 Thread Duncan Murdoch
On 13-10-09 4:34 PM, Yihui Xie wrote: +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 So you're saying if I ever get around to doing this, I'll ha

Re: [Rd] user defined macros in Rd files

2013-10-09 Thread Yihui Xie
+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 Web: http://yihui.name Department of Statistics, Iowa State University 221

[Rd] user defined macros in Rd files

2013-10-09 Thread Kasper Daniel Hansen
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 [[alternative HTML version deleted]]