From lgautier at gmail.com  Fri Nov 14 20:23:34 2008
From: lgautier at gmail.com (laurent)
Date: Fri, 14 Nov 2008 20:23:34 +0100
Subject: [Rd] problem with postscript/pdf plots, locales and embedded R
Message-ID: <1226690614.8615.26.camel@hot-spring>

Dear list,

A problem with creating pdf or postscript plots from an embedded R, and
in an environment where a locale is defined, was recently reported on
the rpy (Python->R interface) mailing list.

The problem appears to be that whenever the locale defines ',' as a
separator for the decimal part of a numerical value, the pdf/ps file
generated still has the ',' instead of a '.' causing problem when open
the resulting file with a postscript/pdf viewer.

Of course, an obvious workaround would be to force the locale for
numbers to C ( LC_NUMERIC = "C" ), but that could be overriding
internationalization features otherwise in R.

Any advice ?


Thanks,


Laurent



[Rd] problem with postscript/pdf plots, locales and embedded R
laurent