The utility function equal can be used to compare two ROI objects and is mainly used for testing purposes.
equal(x, y,...)## S3 method for class '`NULL`'equal(x, y,...)## S3 method for class 'logical'equal(x, y,...)## S3 method for class 'integer'equal(x, y,...)## S3 method for class 'numeric'equal(x, y,...)## S3 method for class 'character'equal(x, y,...)## S3 method for class 'list'equal(x, y,...)## S3 method for class 'simple_triplet_matrix'equal(x, y,...)## S3 method for class 'L_constraint'equal(x, y,...)## S3 method for class 'Q_constraint'equal(x, y,...)## S3 method for class 'V_bound'equal(x, y,...)