servr::httd(daemon = TRUE)
). You can pass the
handles to daemon_stop()
to stop the daemonized servers. Because
stopping a daemonized server more than once using
httpuv::stopDaemonizedServer()
will crash the R session, this
function will check if a server has been stopped before really attempting to
stop it, so it is safer than the stopDaemonizedServer()
in
daemon_stop(which = daemon_list())daemon_list()
daemon_list()
, i.e., all daemon servers will be stopped by defaultdaemon_list()
returns a list of existing server
handles, and daemon_stop()
returns an invisible NULL
.