| Worker | R Documentation |
Returned by app$run_worker() and app$run_process(). See
run_worker().
nameName of the worker (used in events).
state"running", "completed", "failed" or "cancelled".
resultThe value returned by the function (workers) or the exit status (processes).
errorThe error message, if it failed.
timed_outDid the worker fail because its timeout expired?
progressLast reported progress value.
ownerWidget that owns the worker, or NULL.
stdout, stderrThe most recent output lines (at most 1000).
kind"worker" (an R function) or "process".
Worker$new()Create a worker (use app$run_worker()).
Worker$new(name, owner = NULL, callbacks = list())
nameName.
ownerOwner widget.
callbacksList of callbacks.
Worker$cancel()Stop the worker: an interrupt is sent first (Unix) and
the process tree is killed if it has not ended after grace
seconds.
Worker$cancel(grace = 0.3)
graceSeconds to wait before killing.
Worker$is_running()Is the worker still running?
Worker$is_running()
Worker$pid()Process id of the child (or NA).
Worker$pid()
Worker$print()Print the worker.
Worker$print(...)
...Ignored.
Worker$clone()The objects of this class are cloneable with this method.
Worker$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.