Learn R Programming

ChemmineR (version 2.24.2)

bufferLines: Buffer File Input

Description

Buffer the input of files to increase efficiency

Usage

bufferLines(fh, batchSize, lineProcessor)

Arguments

fh
file handle
batchSize
How many lines to read in each batch
lineProcessor
Each batch of lines will be passed to this function for processing

Value

No return value

Examples

Run this code

	## Not run: 
# 		fh = file("filename")
# 		bufferLines(fh,100,function(lines) {
# 			message("found ",length(lines)," lines")
# 		})
# 	## End(Not run)

Run the code above in your browser using DataLab