exit: exit

Description Usage Arguments Details Value See Also

Description

This function cleanly shuts down the remoter server the client is currently connected to, as well as shutting down the client. One can also use q() (while the client is running), and this will not close the active R session on the client.

Usage

1
2
3
4
5
exit(client.only = TRUE, q.server = TRUE)

shutdown()

kill(addr = "localhost", port = 55555)

Arguments

client.only

Logical; if TRUE, then the client disconnects from the server. Otherwise, the server is shut down together with the client.

q.server

Logical; if TRUE, then the server calls q("no") after shuting down with the client. This is useful for cases where the server is running in an interactive R session, and you wish to shut the entire thing down.

addr, port

The server address and port, as in server().

Details

Exit the remoter client/server.

The shutdown() function is shorthand for exit(FALSE, TRUE). The kill() function is shorthand for running batch() with script="shutdown()".

Value

Returns TRUE invisibly on successful exit.

See Also

server and batch


remoter documentation built on May 2, 2019, 6:12 a.m.