Displaying 2 results from an estimated 2 matches for "rd_tag".
Did you mean:
d_tag
2023 Feb 05
1
R2HTML doesn't split paragraphs originating from \Sexpr[results=rd]
...returns FALSE for blank lines produced by a
\Sexpr. This happens because utils:::getSrcByte() not 1 for these blank
lines. That, in turn, is because the source reference for \Sexpr values
is the whole \Sexpr tag:
# blank line from a \Sexpr
Rd[[3]][[2]][[9]][[2]]
# [1] "\n"
# attr(,"Rd_tag")
# [1] "TEXT"
getSrcref(Rd[[3]][[2]][[9]][[2]])
# \Sexpr[stage=render,results=rd]{
# paste(
# rep('Sexpr: This should be on a separate paragraph', 3),
# collapse = '\n\n'
# )
# }
# artisanal hand-crafted blank line
Rd[[3]][[2]][[7]]
# [1] "\n"...
2011 Dec 16
0
Rd error message
I get the following error from one of my Rd files in R CMD check (R
2-14.0)
* checking Rd files ... WARNING
Error in switch(attr(block, "Rd_tag"), TEXT = if (!grepl("^[[:space:]]*
$", :
EXPR must be a length 1 vector
problem found in ?backsolve.Rd?
This is likely something that will be glaringly obvious once it's
pointed out, but without a line number I can't seem to find it. I've
been counting braces but d...