Description Usage Arguments Details Value Author(s) Examples
A queue is a first-in-first-out (FIFO) data structure. The queue package provides a basic interface and implementation for queues. The packages also include “hook” for more sophisticated, inter-process messaging.
1 2 3 4 |
type |
The type of queue to create; default is |
q |
The queue to push or pop values from |
val |
The value to push onto the queue |
... |
Other parameters |
By default the queue
function creates a basic.queue
which can be used on a single R process for sequential data
storage. When distributed queues are used, as in the case with
the redis.queue
package arguments such as the shared
resource name must be specified via the name
parameter.
queue
returns the queue data structure.
push
returns TRUE
or FALSE
depending on whether
or not the push is successful.
pop
returns the data at the head of the queue.
Michael Kane
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.