Re: [R] putting in special characters in print statements

2011-08-30 Thread Erin Hodgess
Solved! xe <- paste("\\end{verbatim}\n",sep="") > cat(xe) \end{verbatim} > On Tue, Aug 30, 2011 at 5:31 PM, Erin Hodgess wrote: > 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 > >

[R] putting in special characters in print statements

2011-08-30 Thread Erin Hodgess
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 g