Closed PatrickOStats closed 2 years ago
Thanks for the issue and kind comments @PatrickOStats - I will take a look at this and get back soon!
Thanks again for reporting the bug @PatrickOStats - Have created a PR here https://github.com/alexsanjoseph/compareDF/pull/45, will merge and create a new release soon
Latest version on cran should fix this issue
Latest version on cran should fix this issue
Thank you very much, @alexsanjoseph! With the latest version, I do no longer experience any issues of this sort. :)
A simple call of compare_df() changes the class of the 2 data.frames on which it is called to data.table - not internally, but in the enclosing environment, e.g. GlobalEnv in the example below. For those of us who don't work with data.tables this can produce unwanted results. With the way R "saves" copies of the same data.frame, there's also no quick way around it with a backup copy. If I'm not mistaken, a call to a function making changes to objects in the global environment is uncommon in R. Two solutions I could think of:
Thank you. Great package, really appreciate it so much!
Minimum reproducible example