Skip to contents

Read file line by line and optionally remove whitespace and duplicate lines. WARNING: Be careful with large files!

Usage

processFile(f, trim = TRUE, rmdups = TRUE)

Arguments

f

Path to file.

trim

If TRUE, trim whitespace.

rmdups

If TRUE, only keep lines which are not identical to the previous line AND which are not whitespace.

Value

Character vector with each element corresponding to a line.