rstream.packed-methods: Methods for Function rstream.packed in Package 'rstream'

Description Usage Arguments Methods Author(s) See Also Examples

Description

Get status (packed/unopacked) of an "rstream" object in package rstream.

Pack and unpack an "rstream" object in package rstream.

When a "rstream" object should be used in another R session or saved for some kind of later reuse all information about the object must be packed. Notice no method other than unpacking can be applied to a packed object. It must be unpacked before.

Usage

1
2
3
## S4 method for signature 'rstream'
rstream.packed(stream)
rstream.packed(stream) <- value

Arguments

stream

an "rstream" object.

value

a boolean (TRUE or FALSE) to change the status of the object.
TRUE: pack the object.
FALSE: unpack the object.

Methods

Methods available for all "rstream" subclasses: rstream.mrg32k3a, rstream.runif.

Author(s)

Josef Leydold [email protected]

See Also

rstream.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## create a new rstream object (of subclass rstream.mrg32k3a)
s <- new("rstream.mrg32k3a")

## pack rstream object
rstream.packed(s) <- TRUE

## status of object 
rstream.packed(s)

## pack rstream object
rstream.packed(s) <- FALSE

rstream documentation built on June 21, 2017, 5:02 p.m.