Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings When Comparing Large data.tables #96

Closed
brodieG opened this issue Dec 2, 2016 · 2 comments
Closed

Warnings When Comparing Large data.tables #96

brodieG opened this issue Dec 2, 2016 · 2 comments

Comments

@brodieG
Copy link
Owner

brodieG commented Dec 2, 2016

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)
@brodieG brodieG added the bug label Dec 2, 2016
@brodieG brodieG added this to the 0.1.7 milestone Dec 2, 2016
@chambm
Copy link

chambm commented Apr 18, 2017

👍 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.

@brodieG
Copy link
Owner Author

brodieG commented Apr 18, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants