From S.J.Eglen at damtp.cam.ac.uk  Wed Apr 22 12:13:46 2009
From: S.J.Eglen at damtp.cam.ac.uk (Stephen Eglen)
Date: Wed, 22 Apr 2009 11:13:46 +0100
Subject: [Rd] Clarification for options(OutDec)
Message-ID: <4345.1240395226@cpc5-cmbg2-0-0-cust788.cmbg.cable.ntl.com>


The documentation for the OutDec option says that it should be a
'one-character string'; yet, if I try a unicode character, it doesn't seem
to work.  Are unicode chars not counted as one-character?

This is within the mac GUI, but I also see this on linux boxes.

> x <- '\u00B7'
> nchar(x)
[1] 1
> options(OutDec=x)
Error in options(OutDec = x) : invalid value for 'OutDec'

I don't think I've changed anything with my LANG settings, but here it
is anyway:

> Sys.getenv('LANG')
         LANG 
"en_GB.UTF-8" 

> version
               _                           
platform       i386-apple-darwin8.11.1     
arch           i386                        
os             darwin8.11.1                
system         i386, darwin8.11.1          
status                                     
major          2                           
minor          9.0                         
year           2009                        
month          04                          
day            17                          
svn rev        48333                       
language       R                           
version.string R version 2.9.0 (2009-04-17)


Stephen



[Rd] Clarification for options(OutDec)
Stephen Eglen