When using daemons with a local dispatcher service, regenerates the token for the URL a dispatcher socket listens at.

saisei(i = 1L, force = FALSE, .compute = "default")

Arguments

i

[default 1L] integer ith URL to replace.

force

[default FALSE] logical value whether to replace the listener even when there is an existing connection.

.compute

[default 'default'] character compute profile to use (each compute profile has its own set of daemons for connecting to different resources).

Value

The regenerated character URL upon success, or else NULL.

Details

As the specified listener is closed and replaced immediately, this function will only be successful if there are no existing connections at the socket (i.e. 'online' status shows 0), unless the argument 'force' is specified as TRUE.

Examples

if (interactive()) {
# Only run examples in interactive R sessions

daemons(1L)
Sys.sleep(1L)
daemons()
saisei(i = 1L, force = TRUE)
daemons()

daemons(0)

}