Displaying 2 results from an estimated 2 matches for "check_package_parserd".
2018 Jul 12
1
Top level \Sexpr and R CMD check
...he returned
> value is always a valid top level section, anyway.
> If it is not a valid section (or \Sexpr returns some bad markup in
> general), then the user gets a render-time error,
> but with stage=render I guess one cannot do better.
>
I believe the problem is in the tools:::.check_package_parseRd function.
It checks the .Rd files rather than parsed Rd objects, so it needs to
be told to expand all \Sexpr's, not just render-time ones. I think it
is fixed by the below patch to R-devel. Can you give it a try before I
submit the bug report?
Duncan Murdoch
Index: src/library/tools/R...
2018 Jul 12
3
Top level \Sexpr and R CMD check
On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch <murdoch.duncan at gmail.com> 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.
>
> So you could use that as