[R] putting in special characters in print statements

Erin Hodgess erinm.hodgess at gmail.com
Wed Aug 31 03:05:16 CEST 2011


Solved!

 xe <- paste("\\end{verbatim}\n",sep="")
> cat(xe)
\end{verbatim}
>




On Tue, Aug 30, 2011 at 5:31 PM, Erin Hodgess <erinm.hodgess at 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.hodgess at gmail.com
>



-- 
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