[R] Windows OS, R and unicode
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Oct 4 08:31:47 CEST 2007
Richard,
At present the \uxxxx notation only works on Windows in CJK locales, and
only to represent characters defined in the locale in use. Now it seems
that _does_ include the signs you mention in Japanese. So it is possible
that if you start R with
Rgui LC_CTYPE=ja
then this will work: it does for me in 2.6.0 (and I see no reason why it
would not in 2.5.1, but I updated my Windows box yesterday).
I should perhaps add that only windows() devices will work and not say
pdf().
Brian
On Thu, 4 Oct 2007, Richard Rowe wrote:
> I'm trying to use the biological female and male signs in R2.5.1 under
> Windows XP. I can access and insert these symbols using word-processors.
>
> In general these should be available as \u2640 and \u2642 but I can't
> make them happen in R using (say) text(5,5, "\u2640") message "invalid
> \uxxxx sequence"
>
> I've replaced Arial with Arial unicode MS in Rdevga and I've tried
> various setlocale options with no success (the Murrell/Ripley examples
> (Rnews 6/2) do work of course ... so I feel I should be able to do this
> myself, but after several hours it is time to ask for help).
>
> I understand from Google results that users on Mac OS and Linux aren't
> facing this problem ...
>
> Richard
>
>
--
Brian D. Ripley, ripley at 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
More information about the R-help
mailing list