grepTempFile: From an existing file, creates a new one containing a given...

Description Usage Arguments Examples

View source: R/utils.R

Description

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

Usage

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

Arguments

x

String - path to file

pattern

Character vector - patterns to select in file

Examples

1
2
3
4
## Not run: 
grepTempFile("path/to/file", c("patternA", "patternB"))

## End(Not run)

pablo-gar/rSubmitter documentation built on Jan. 26, 2020, 2:08 a.m.