You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one came up when comparing two data.tables where one had one more column than the other:
Warning messages:
1: In cbind(integer(2L), abs(apply(seq.dat, 1L, diff))) :
number of rows of result is not a multiple of vector length (arg 1)
2: In cbind(integer(2L), abs(apply(seq.dat, 1L, diff))) :
number of rows of result is not a multiple of vector length (arg 1)
The text was updated successfully, but these errors were encountered:
👍 I saw that one too and wasn't sure whether it was coming from testthat or diffobj. I'm trying to find a good diff solution that will comprehensibly say "these two files are different because one has an extra column". Line by line diff is not well suited to this but testthat's default error messages are even worse.
Not a great workaround, but if you are specifically looking for added/removed columns doing an as.list(DT) can produce slightly more useful output in the diff. There is also daff which is more specifically targeted at data frames.
This one came up when comparing two data.tables where one had one more column than the other:
The text was updated successfully, but these errors were encountered: