Ring Buffers
Ring buffers in R and C.
There are two sorts of buffers implemented; a pure R ring buffer implemented as double linked list (using environments) that is genuinely ring, and one implemented in C that operates as an array of bytes. Both can be used from R, and the C one can be used in other packages using R's LinkingTo:
support.
devtools::install_github("richfitz/ring")
library(ring)
MIT + file LICENSE © Rich FitzJohn.