search for: rdtag

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

Did you mean: dtag
2019 Oct 08
0
\Sexpr{} within \examples{}
...39;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(tools:::RdTags(rd) == "\\examples") tools::Rd2txt(rd[pos], fragment = TRUE) #> Examples: #> #> Error: 6: Tag \Sexpr not expected in code block # This fails. After prepare_Rd() it works fine: rd2 <- tools:::prepare_Rd(rd, stages = "render") pos2 <- which(tools:::RdTags(rd2) =...