From ripley at stats.ox.ac.uk  Wed Apr 22 12:33:12 2009
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 22 Apr 2009 11:33:12 +0100 (BST)
Subject: [Rd] Clarification for options(OutDec)
In-Reply-To: <4345.1240395226@cpc5-cmbg2-0-0-cust788.cmbg.cable.ntl.com>
References: <4345.1240395226@cpc5-cmbg2-0-0-cust788.cmbg.cable.ntl.com>
Message-ID: <alpine.LFD.2.00.0904221132050.13134@gannet.stats.ox.ac.uk>

On Wed, 22 Apr 2009, Stephen Eglen wrote:

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

Correct, it has to be a single byte (and the comment dates from 
before UTF-8 was suported).

>
> 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
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

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



[Rd] Clarification for options(OutDec)
Prof Brian Ripley