getCopyOnWrite {SharedObject}R Documentation

Get or set the properties of a shared object

Description

Get or set the properties of a shared object

Usage

getCopyOnWrite(x)

getSharedSubset(x)

getSharedCopy(x)

setCopyOnWrite(x, value)

setSharedSubset(x, value)

setSharedCopy(x, value)

Arguments

x

A shared object

value

logical, the value you want the property to be. For a data.frame, it can be either a single value or a vector. If the length of value does not match the column of the data.frame, value will be replicate to match the length.

Value

get: The property of a shared object

set: No return value

Examples

x = share(1:20)
## Check the default values
getCopyOnWrite(x)
getSharedSubset(x)
getSharedCopy(x)

## Set the values
setCopyOnWrite(x,FALSE)
setSharedSubset(x,FALSE)
setSharedCopy(x,TRUE)

## Check the values again
getCopyOnWrite(x)
getSharedSubset(x)
getSharedCopy(x)

[Package SharedObject version 1.0.0 Index]