Displaying 1 result from an estimated 1 matches for "check_rd_line_width".
Did you mean:
check_rd_line_widths
2019 Oct 08
0
\Sexpr{} within \examples{}
...uld be better to
evaluate the \Sexpr{} in/before the long line check. Otherwise it 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 <...