[R-SIG-Mac] Bug in data editor

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Sep 29 18:59:25 CEST 2013


On 28/09/2013 13:50, Duncan Murdoch wrote:
> The bug
>
> https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15463
>
> appears to be R.app specific.  All of the data editors (R.app, X11,
> Windows) round the data for display, but the one in R.app appears to
> reload the data from the rounded values, whether edited or not.
>
> I've just confirmed this still exists with the 3.0.2 release:
>
>  > sessionInfo()
> R version 3.0.2 (2013-09-25)
> Platform: x86_64-apple-darwin10.8.0 (64-bit)
>
> locale:
> [1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> Duncan Murdoch

That editor is part of R.app: see ca line 212 in REditor.m in the 
Mac-GUI project's sources.

The X11 and Windows editors write the value back into the R structures 
when the rectangle is 'closed': the R.app editor writes all the values 
back from their character representations as ObjC strings when the data 
editor is closed.

Seems the last person to touch this was 'bibiko'.  This needs a hand 
comfortable with ObjC.

One possible workaround would be to set the internal equivalent of 
options(digits=15) when the data are converted to ObjC strings.  But 
AFAICS the internal equivalent is not officially in the exports 
available to front-ends (but the OS X loader makes everything visible, 
so this may not be fatal).


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



More information about the R-SIG-Mac mailing list