[Rd] data editor freeze on empty data frame (PR#622)

Prof Brian Ripley Prof Brian Ripley <ripley@stats.ox.ac.uk>
Wed, 2 Aug 2000 14:10:21 +0100 (BST)

> To: r-devel@stat.math.ethz.ch
> Cc: R-bugs@biostat.ku.dk
> Subject: Re: [Rd] data editor freeze on empty data frame (PR#622)
> From: Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk>
> Date: 02 Aug 2000 14:35:42 +0200
> pd@blueberry.kubism.ku.dk writes:
> > However, in the X version, this seems to cause the data editor to
> > freeze as soon as one hits Enter after inserting data into the
> > first cell. I haven't tried the Windows version yet.
> Freezes the windows version as well, it seems. Also, the code for
> editing factors using their numeric codes seems to have been broken in
> 1.1.0 (only converts back to factor if there are invalid levels). I'll
> fix the latter.

Found and corrected: an infinite loop in getccol when the length
was zero, of very long standing.

> [I'm also not happy with the code that autoinserts mistyped or
> otherwise extraneous factor levels -- if they really are typos,
> they'll be a pain to remove if one used fix(my.frame)! That
> may be against policy to change in a patch release, though...]

Until the data editor has a mode for factors, the current compromise,
to edit as character, seems the best one to me.  Using cut and paste
helps to eliminate typos.

Brian D. Ripley,                  ripley@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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-devel 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-devel-request@stat.math.ethz.ch