checkProtection {goCluster} | R Documentation

## A function to protect intermediate results from being overwritten

### Description

This function can be called by a method that will overwrite object data. `checkProtection` will retrieve the list in the `reset`-slot of the given object. The names of elements in this list will be considered as slot names and each list element will be compared against the value in the corresponding slot. If the length of any such pairs differs an error message will be issued.

### Usage

    checkProtection(object, method)

### Arguments

`object` | The object to check
`method` | A string that names the method trying to overwrite data. It will be included in the error message.

### Value

An error message in case the calling method would overwrite already calculated values.

### Author(s)

Gunnar Wrobel, http://www.gunnarwrobel.de.

### See Also

`clusterModule-class`.

[Package goCluster version 1.0.0 Index]