Stream Process Large Files
stream_file(
file_path,
process_fn,
chunk_size = 10000,
skip = 0,
max_lines = NULL,
progress = TRUE
)
Result of processing
Path to the file to process
Function to process each chunk/line
Number of lines to read at once
Number of lines to skip at beginning of file
Maximum number of lines to process (NULL = all)
Logical, whether to show progress