Re: [Rd] Top level \Sexpr and R CMD check

2018-07-16 Thread Gábor Csárdi
The patch indeed solves the issue. Thanks much, G. On Thu, Jul 12, 2018 at 5:29 PM Duncan Murdoch wrote: > > On 12/07/2018 9:46 AM, Gábor Csárdi wrote: > > On Thu, Jul 12, 2018 at 2:30 PM Gábor Csárdi wrote: > >> > >> On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch > >> wrote: > >>> I think I

Re: [Rd] Top level \Sexpr and R CMD check

2018-07-12 Thread Duncan Murdoch
On 12/07/2018 9:46 AM, Gábor Csárdi wrote: On Thu, Jul 12, 2018 at 2:30 PM Gábor Csárdi wrote: On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch wrote: I think I found the bug. The tools::checkRd function only processes \Sexpr's with "stage=render". I think the author (who might have been me,

Re: [Rd] Top level \Sexpr and R CMD check

2018-07-12 Thread Duncan Murdoch
On 12/07/2018 9:46 AM, Gábor Csárdi wrote: On Thu, Jul 12, 2018 at 2:30 PM Gábor Csárdi wrote: On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch wrote: I think I found the bug. The tools::checkRd function only processes \Sexpr's with "stage=render". I think the author (who might have been me,

Re: [Rd] Top level \Sexpr and R CMD check

2018-07-12 Thread Gábor Csárdi
On Thu, Jul 12, 2018 at 2:30 PM Gábor Csárdi wrote: > > On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch > wrote: > > I think I found the bug. The tools::checkRd function only processes > > \Sexpr's with "stage=render". I think the author (who might have been > > me, I forget) assumed that would

Re: [Rd] Top level \Sexpr and R CMD check

2018-07-12 Thread Gábor Csárdi
On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch wrote: > I think I found the bug. The tools::checkRd function only processes > \Sexpr's with "stage=render". I think the author (who might have been > me, I forget) assumed that would imply all the earlier stages as well, > but apparently it doesn't

Re: [Rd] Top level \Sexpr and R CMD check

2018-07-12 Thread Duncan Murdoch
On 12/07/2018 7:30 AM, Gábor Csárdi wrote: On Thu, Jul 12, 2018 at 12:23 PM Duncan Murdoch wrote: On 12/07/2018 6:33 AM, Gábor Csárdi wrote: I would like to create \examples{} in the manual dynamically, and while it is possible to do this with a \Sexpr at the top level, R CMD check issues a w

Re: [Rd] Top level \Sexpr and R CMD check

2018-07-12 Thread Gábor Csárdi
On Thu, Jul 12, 2018 at 12:23 PM Duncan Murdoch wrote: > > On 12/07/2018 6:33 AM, Gábor Csárdi wrote: > > I would like to create \examples{} in the manual dynamically, and > > while it is possible to do this with a \Sexpr at the top level, R CMD > > check issues a warning for it. (See below.) > >

Re: [Rd] Top level \Sexpr and R CMD check

2018-07-12 Thread Duncan Murdoch
On 12/07/2018 6:33 AM, Gábor Csárdi wrote: I would like to create \examples{} in the manual dynamically, and while it is possible to do this with a \Sexpr at the top level, R CMD check issues a warning for it. (See below.) Is it intentional that \Sexpr is not allowed at the top level? The Rd gr