Comparing Non-Identical Objects Introducing the 'compare' package
Paul R. Murrell · 2015
The compare package provides functions for comparing two R objects for equality, while allowing for a range of “minor” differences. Objects may be reordered, rounded, or resized, they may have names or attributes removed, or they may even be coerced to a new class if necessary in order to achieve equality. The results of comparisons report not just whether the objects are the same, but also include a record of any modifications that were performed. This package was developed for the purpose of partially automating the marking of coursework involving R code submissions, so functions are also provided to convert the results of comparisons into numeric grades and to provide feedback for students.