Solved! xe <- paste("\\end{verbatim}\n",sep="") > cat(xe) \end{verbatim} >
On Tue, Aug 30, 2011 at 5:31 PM, Erin Hodgess <erinm.hodg...@gmail.com> 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 > > \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.hodg...@gmail.com > -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodg...@gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.