Hi, On Sunday 19 September 2010, Prasenjit Kapat wrote: > Here is something that I found interesting. Consider the last two > lines of Stefan's Procedure.txt: > > data <- data.frame (.... > names (data) <- c(... > > The crash is deterministic after you run these two lines individually > (ie, "Run current line"). > > But the crash does NOT occur after you run them together (ie, "Run > selection") or after you run the whole file (ie "Run all") or after > _source ("Procedure.txt")_. Stefan can you confirm this?
The reason is that in the first case, RKWard sees "data" for the first time, and knows that it is a totally new object. In the second case it sees that the object may have been modified, and tries to walk through all sub-objects (i.e. columns in this case) to check whether those still exist, have been moved, or there are new ones. In this second case, RKWard tries to look up each column by name, and this is where the problem arises. So, I think I have a relatively good idea, what's causing the problem, but I'm still pondering a good solution. > Although, in many attempts I could not reproduce the crash using any > of the following toy examples: Thanks for all the testing. I believe that's mostly due to the memory gremlins, though. It's their sort of humor... > As a caution to the user: Should a warning be displayed when the data > editor encounters multiple columns with same name? Noting that, the > data itself is not lost, it is just not displayed and hence not safe > to be edited! (Or is it safe anyways?) *In theory* it might be safe, but it's probably a good idea to warn the user! Regards Thomas
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ RKWard-devel mailing list RKWard-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rkward-devel