R/utils.R
grepTempFile.Rd
Creates a new file based of x only with lines containing the specified pattern(s) WARNING: uses unix grep
grepTempFile(x, pattern, tempLocation = ".")
x | String - path to file |
---|---|
pattern | Character vector - patterns to select in file |
# NOT RUN { grepTempFile("path/to/file", c("patternA", "patternB")) # }