har_simulated_collector: Simulated stream collector

View source: R/har_online_sources.R

har_simulated_collectorR Documentation

Simulated stream collector

Description

Reference collector that replays an in-memory vector, matrix, or data frame one observation at a time. It lets a har_source_kafka() run end-to-end without a broker, and is the template for a real-broker collector.

Usage

har_simulated_collector(data)

Arguments

data

Numeric vector, matrix, or data frame in time order.

Value

A har_simulated_collector object exposing get_next()/close().

Examples

collector <- har_simulated_collector(c(10, 11, 12))
collector$get_next()
collector$get_next()

harbinger documentation built on Nov. 29, 2026, 9:06 a.m.