Re: [Rd] sprintf behavior (PR#9250)

From: <ripley_at_stats.ox.ac.uk>
Date: Mon 25 Sep 2006 - 09:46:13 GMT


On Mon, 25 Sep 2006, michael.bauer@lo-res.org wrote:

> Full_Name: Michael Bauer
> Version: 2.3.1
> OS: Mac OS X 10.4.7
> Submission from: (NULL) (131.130.124.155)
>
>
>> sessionInfo()
> Version 2.3.1 (2006-06-01)
> powerpc-apple-darwin8.6.0
>
> attached base packages:
> [1] "methods" "stats" "graphics" "grDevices" "utils"
> [6] "datasets" "base"
>>
>
> sprintf("\p") doesn't show the backslash, this occurs with all strings that
> start with certain letters. There is however no explanation to this behavior.

There is: see ?Quote (and C behaves in the same way).

> And there seems to be no way to get a guaranteed backslash in sprintf.

"\\", see the FAQ 7.8 for example.

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon Sep 25 19:48:41 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 26 Sep 2006 - 17:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.