all.equal.simList: All equal method for 'simList' objects

View source: R/helpers.R

all.equal.simListR Documentation

All equal method for simList objects

Description

This function removes a few attributes that are added internally by SpaDES.core and are not relevant to the all.equal. One key element removed is any time stamps, as these are guaranteed to be different. A possibly very important argument to pass to the ... is check.attributes = FALSE which will allow successful comparisons of many objects that might have pointers.

Usage

## S3 method for class 'equal.simList'
all(target, current, ...)

Arguments

target

R object.

current

other R object, to be compared with target.

...

further arguments for different methods, notably the following two, for numerical comparison:

Value

See base::all.equal()


SpaDES.core documentation built on June 22, 2024, 10:32 a.m.