unitizer
unitizer copied to clipboard
Reference Object Issues
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.
Note this will almost certainly have to be a documentation issue rather than an actual resolution.
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.