Learn R Programming

nws (version 1.6.2)

close: nwsServer, sleigh Class Method

Description

Depends on the first argument type passed to the close function, it behaves differently. If the first argument is a sleigh object, then close function calls stopSleigh to shutdown the sleigh workers and delete the sleigh workspace. If the first argument is a nwsServer object, then the connection to the netWorkSpace server is closed.

Usage

## S3 method for class 'nwsServer':
close(con, ...)
## S3 method for class 'sleigh':
close(con, ...)

Arguments

con
a sleigh class object or a nwsServer class object
...
optional fields

Details

The optional fields are not passed to stopSleigh method. They are defined to be compatible with the default, non-generic close method.

Examples

Run this code
s = sleigh()
close(s)

wss = nwsServer()
close(wss)

Run the code above in your browser using DataLab