remoter (version 0.4-0)

exit: exit

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

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().

Value

Returns TRUE invisibly on successful exit.

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()".

See Also

server and batch