search for: find_wide_rd_lines_in_rd_object

Displaying 1 result from an estimated 1 matches for "find_wide_rd_lines_in_rd_object".

2019 Oct 08
0
\Sexpr{} within \examples{}
...is surely not checking the text that'll appear in the manual in the end. Maybe it would make sense to call prepare_Rd() before the check, to evaluate the \Sexpr{} calls? Here is a reproducible example, tools:::.check_Rd_line_widths() eventually calls Rd2txt() with fragment = TRUE, via tools:::find_wide_Rd_lines_in_Rd_object, so I'll just call Rd2txt() directly here, for simplicity: rd <- " \\name{foo} \\title{Title} \\description{Desc.} \\examples{ \\Sexpr[stage=render]{\"# foobar\"} }" rd <- tools::parse_Rd(con <- textConnection(rd)); close(con) tools::Rd2txt(rd) pos <- which(...