Skip to content

data editor freeze on empty data frame (PR#622)

2 messages · Peter Dalgaard

#
It is quite tempting to start simple data entry sessions where
you need to type in the data like this:

my.frame<-data.frame(a=numeric(0),b=numeric(0))
fix(my.frame)

(and if factors are involved, that is pretty much what you'd have to do
in order to get the appropriate levels)

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.

[This is something it would be nice to have resolved in 1.1.1]

--please do not edit the information below--

Version:
 platform = i586-pc-linux-gnu
 arch = i586
 os = linux-gnu
 system = i586, linux-gnu
 status = Patched
 major = 1
 minor = 1.0
 year = 2000
 month = August
 day = 1
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
pd@blueberry.kubism.ku.dk writes:
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.

[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...]