Method new()
Creates a new progress panel and displays it.
Usage
AsyncProgress$new(
...,
queue = shinyQueue(),
millis = 250,
value = NULL,
message = NULL,
detail = NULL
)
Arguments
...
Additional parameters to be passed to Shiny::Progress
queue
A Queue object for message passing
millis
How often in milliseconds should updates to the progress bar be checked for.
value
A numeric value at which to set
the progress bar, relative to min
and max
.
message
A single-element character vector; the message to be
displayed to the user, or NULL
to hide the current message
(if any).
detail
A single-element character vector; the detail message
to be displayed to the user, or NULL
to hide the current
detail message (if any). The detail message will be shown with a
de-emphasized appearance relative to message
.
Method getMax()
Returns the maximum
Usage
AsyncProgress$getMax()
Method getMin()
Returns the minimum
Usage
AsyncProgress$getMin()
Method sequentialClose()
Removes the progress panel and destroys the queue. Must be called from main process.
Usage
AsyncProgress$sequentialClose()
Method set()
Updates the progress panel. When called the first time, the
progress panel is displayed.
Usage
AsyncProgress$set(value = NULL, message = NULL, detail = NULL)
Arguments
value
A numeric value at which to set
message
A single-element character vector; the message to be
displayed to the user, or NULL
to hide the current message
(if any).
detail
A single-element character vector; the detail message
to be displayed to the user, or NULL
to hide the current
detail message (if any). The detail message will be shown with a
de-emphasized appearance relative to message
.
Method inc()
Like set
, this updates the progress panel. The difference is
that inc
increases the progress bar by amount
, instead
of setting it to a specific value.
Usage
AsyncProgress$inc(amount = 0.1, message = NULL, detail = NULL)
Arguments
amount
the size of the increment.
message
A single-element character vector; the message to be
displayed to the user, or NULL
to hide the current message
(if any).
detail
A single-element character vector; the detail message
to be displayed to the user, or NULL
to hide the current
detail message (if any). The detail message will be shown with a
de-emphasized appearance relative to message
.
Fires a close signal and may be used from any process.
Usage
AsyncProgress$close()
Method clone()
The objects of this class are cloneable with this method.
Usage
AsyncProgress$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.