close {nws} | R Documentation |
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 sleigh workers and delete sleigh workspace. If the first argument is a nwsServer object, then the connection to the netWorkSpace server is closed.
close(con, ...)
con |
a sleigh class object or a nwsServer class object |
... |
optional fields |
The optional fields are not passed to stopSleigh method. They are defined to be compatiable with the default, non-generic close method.
## Not run: s = sleigh() close(s) wss = nwsServer() close(wss) ## End(Not run)