knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of queue is to provide a simple on-disk queue data structure in R.
You can install queue from github with:
# install.packages("remotes") remotes::install_github("rdpeng/queue")
This is a basic example which shows you how to solve a common problem:
library(queue) x <- create_queue("myqueue") is_empty(x) ## Queue up some items enqueue(x, 1) enqueue(x, 2) ## Look at the head of the queue peek(x) ## Retrieve some items dequeue(x) dequeue(x) is_empty(x) delete_queue(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.