Skip to content
Prev 17448 / 63421 Next

R CMD check example problem (PR#8113)

[CCing to r-bugs to inform people that we have looked at it.]

Greg,

you sent me the example which can be reduced to an example.Rd file that 
contains the following Example section:


############################
\examples{
# \code{} \code{}
foo <- function()
{
}
}
############################

calling now
    R CMD Rdconv -t example example.Rd
results in:



############################
### ** Examples

# this-is-escaped-code{ this-is-escaped-codenormal-bracket9bracket-normal
foo <- function()
normal-bracket10bracket-normal
normal-bracket10bracket-normal
############################


I do not know whether this qualifies as a bug, but for simplicity let's say:
"Don't use \code{} in an Example section where it does not make sense 
anyway."

Best,
Uwe
Warnes, Gregory R wrote: