Learn R Programming

SpaDES.core (version 2.0.5)

.addChangedAttr,simList-method: .addChangedAttr for simList objects

Description

This will evaluate which elements in the simList object changed following this Cached function call. It will add a named character string as an attribute attr(x, ".Cache")$changed, indicating which ones changed. When this function is subsequently called again, only these changed objects will be returned. All other simList objects will remain unchanged.

Usage

# S4 method for simList
.addChangedAttr(object, preDigest, origArguments, ...)

Value

returns the object with attribute added

Arguments

object

Any R object returned from a function

preDigest

The full, element by element hash of the input arguments to that same function, e.g., from .robustDigest

origArguments

These are the actual arguments (i.e., the values, not the names) that were the source for preDigest

...

Anything passed to methods.

See Also

reproducible::.addChangedAttr