Backslash in character string (PR#1887)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Thu, 8 Aug 2002 07:30:21 +0100 (BST)


This is not an error, but intentional.
Use cat to print unescaped output.

Please use R-help to ask questions about how to do things in R, and
consult the FAQ about what a bug is.

On Thu, 8 Aug 2002 Andreas.Kiermeier@adelaide.edu.au wrote:

> Full_Name: Andreas Kiermeier
> Version: 1.5.1
> OS: NT4.0
> Submission from: (NULL) (129.127.41.28)
>
>
> R appears not to be able to print a single backslash in a string, see example
> session below.  The same happens on Solaris 2.6 using R 1.5.1.
>
> > version
>          _
> platform i386-pc-mingw32
> arch     i386
> os       mingw32
> system   i386, mingw32
> status
> major    1
> minor    5.1
> year     2002
> month    06
> day      17
> language R
> > "\"
> Error: syntax error
> > "\\"
> [1] "\\"
> > "\lambda"
> [1] "lambda"
> > "\\lambda"
> [1] "\\lambda"
> > "\134lambda"
> [1] "\\lambda"
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._