sgStreamToFile: Send a stream of raw data to a file

View source: R/sgStreamToFile.R

sgStreamToFileR Documentation

Send a stream of raw data to a file

Description

A stream of raw data consists of all records from raw files with the same monoBN (montonic boot number), ordered by increasing date. This function lets you write one or more streams, specified by monoBN, or all streams, to a file. Typically, this file is a fifo with a reader, such as the tag finder.

Usage

sgStreamToFile(src, f, mbn = NULL, append = FALSE)

Arguments

src

dplyr src_sqlite to receiver database

f

output filename

mbn

integer vector of monotonic boot numbers; this is the monoBN field from the files table in the receiver's sqlite database. Defaults to NULL, which means run all streams in order.

append

logical scalar; if TRUE, append data to existing file contents. Defaults to FALSE.

Value

invisible NULL

Note

any notes

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.