unitizer icon indicating copy to clipboard operation
unitizer copied to clipboard

Reference Object Issues

Open brodieG opened this issue 9 years ago • 2 comments

How do we handle reference objects that are modified by subsequent tests:

DT <- data.table(a=1:10)
DT[1:5]
DT[1:5, a=:3]
DT

When the browsing environment comes up the first version of the table is overwritten.

brodieG avatar Jan 08 '15 00:01 brodieG

Note this will almost certainly have to be a documentation issue rather than an actual resolution.

brodieG avatar Sep 01 '16 17:09 brodieG

This is mostly documented now. Leaving alive in case we think of some way of getting a better resolution. One half-thought was to duplicate objects ahead of tests, compare after, and if the same throw away the duplication. The problem is this may necessitate duplicating and checking every object in the test tree since it is hard to know from an expression alone what objects could be potentially affected.

brodieG avatar Mar 15 '17 00:03 brodieG