knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

pumpr

Assemble a single result for data providers that split their output in chunks.

count <- 0L
stupid_pump <- pumpr::Pump$new(get_chunk = function() 1:10,
                               has_completed = function() { count <<- count + 1L; count > 5L})

stupid_pump$pump()


krlmlr/pumpr documentation built on May 20, 2019, 6:17 p.m.