setSleigh {nws}R Documentation

Set Sleigh object

Description

This function registers the specified sleigh object. It can be accessed later using the getSleigh function.

Note

This function is useful in conjunction with packages that get their default sleigh objects using the getSleigh function. It allows users to create special sleigh objects that will be used by any packages that get sleigh objects using the getSleigh function.

See Also

getSleigh, sleigh

Examples

## Not run: 
setSleigh(sleigh(workerCount=2))
s <- getSleigh()
eachWorker(s, function() SleighRank)

## End(Not run)

[Package nws version 2.0.0.3 Index]