R/hsLineReader.R

Defines functions `hsLineReader`

`hsLineReader` <-
function(file="",chunkSize=-1L, skip=0L, FUN=function(x) cat(x,sep='\n')) {
  if (skip>0) {
    junk = readLines(file, n=skip)
  }
  repeat {
    a = readLines(con=file, n=chunkSize,warn=TRUE)
    if (length(a) ==0) break
    FUN(a)
  }
}

Try the HadoopStreaming package in your browser

Any scripts or data that you put into this service are public.

HadoopStreaming documentation built on May 2, 2019, 4:46 p.m.