Re: [R] Lattice: key does not accept German umlaute

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 06 Jun 2008 11:48:56 +0100 (BST)

Well, you failed to give the 'at a minimum information' asked for in the posting guide, and \344 is locale-specific. I see 'MingW32' below, so will guess this is German-language Windows. We don't know what the error was, either.

It works correctly for me in CP1252 with R-patched, and gives an error in 2.7.0 (and works in 2.6.2). I think it was fixed as side effect of

     o	Rare string width calculations in package grid were not
 	interpreting the string encoding correctly.

although it is not the same problem that NEWS item refers to.

My error message in 2.7.0 was

Error in grid.Call.graphics("L_setviewport", pvp, TRUE) :

   invalid input 'Männer' in 'utf8towcs'

which is what makes me think this was to do with sizing the viewport.

So please update to R-patched and try again.

On Fri, 6 Jun 2008, Bernd Weiss wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> library(lattice)
>
> ## works as expected
> xyplot(1~1, key = list(text = list(c("Maenner"))))
>
> ## works as expected
> xyplot(1~1, key = list(text = list(c("Maenner"))), xlab = "M\344nner")
>
> ## gives an error
> xyplot(1~1, key = list(text = list(c("M\344nner"))))
>
> Is this a bug?
>
> TIA,
>
> Bernd
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFISPo6Usbvfbd00+ERArJFAJsEvWq2Cai7chuOADadZHT2pnRJOgCfWLdx
> 3Hs3PnCzd6nuTqt6JwCl+VM=
> =RVUk
> -----END PGP SIGNATURE-----
>
> ______________________________________________
> R-help_at_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.
>

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


______________________________________________ R-help_at_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.

Received on Fri 06 Jun 2008 - 11:08:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 Jun 2008 - 13:30:37 GMT.

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

list of date sections of archive