addChangedAttr: '.addChangedAttr' for 'simList' objects

.addChangedAttr,simList-methodR Documentation

.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 signature 'simList'
.addChangedAttr(object, preDigest, origArguments, ...)

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.

Value

returns the object with attribute added

See Also

reproducible::.addChangedAttr


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