[R] Windows / Accented characters / pb with makename
maechler at stat.math.ethz.ch
Tue Aug 29 14:58:23 CEST 2000
>>>>> "BDR" == Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:
BDR> On Mon, 28 Aug 2000, Charles RAUX wrote:
>> Thank you for the hint (I didn't know makename). In fact contrary to
>> what is indicated in help makename doesn't give legal R names
>> (at least under Windows).
>> See below:
>> > make.names("aéaéaéaùàééé")
>>  "aéaéaéaùàééé"
>> 2) What is a "legal R name"? (found nowhere in FAQ, help...)
BDR> That's the problem. In S it is a-zA-Z0-9 plus `.'. In R it would
BDR> appear to be those characters which are regarded as alphanumeric
BDR> in the locale in use plus `.' (Via a call to isalnum in both
BDR> make.names and the parser.) Now it's hard for me to test this, but
BDR> I think in a French locale those chars should be legal in names.
BDR> They are not in the C or en_UK locales, and make.names on Windows
BDR> does work in those locales.
Yes, the locale should determine legal names in R.
Here, I use de_CH :
BDR> There is something rather peculiar about locale support on Windows,
r-help 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-help-request at stat.math.ethz.ch
More information about the R-help