[R] putting in special characters in print statements

Erin Hodgess erinm.hodgess at gmail.com
Wed Aug 31 00:31:14 CEST 2011


Dear R People:

Here is a question which probably has a very simple answer.  I want to
print "\end{verbatim}" in the output of a sink file.  If I put in

\end{verbatim}
I get an unrecognized escape sequence.  If I put in \\end{verbatim},
it runs fine, but the output is "\\end{verbatim}"

How do I get just one bracket, please?

Thanks,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com



More information about the R-help mailing list