Creates a new file based of x only with lines containing the specified pattern(s) WARNING: uses unix grep

grepTempFile(x, pattern, tempLocation = ".")

Arguments

x

String - path to file

pattern

Character vector - patterns to select in file

Examples

# NOT RUN {
grepTempFile("path/to/file", c("patternA", "patternB"))
# }