Learn R Programming

rstream (version 1.3.7)

rstream.version: Switch to behavior of earlier version of package

Description

rstream.version can be used to switch to the behavior as it was in an earlier version of package rstream (for reproducibility).

Usage

rstream.version(version)

Arguments

version

a character string containing a version number of the form "xx.yy" or "xx.yy.zz", e.g., "1.2.5".

Author

Josef Leydold josef.leydold@wu.ac.at

Details

Bug fixes may influence a generated random stream (see NEWS file, news(package="rstream")). However, it is sometimes necessary to reproduce the same sequence with a newer version of the package. Thus one can switch to this behavior by means of rstream.version.

version is a character string that contains the requested version number. Notice that only the major number and the first minor number are relevant. The string "default" can be used to switch back to the new behavior. When version is omitted than the actual version number is shown.

See Also

rstream.

Examples

Run this code
## Switch to version 1.2
rstream.version("1.2")
## Show current version
rstream.version()
## Switch back to default
rstream.version("default")
rstream.version()

Run the code above in your browser using DataLab