look_in_files: Look for string pattern in files and print file name on...

Description Usage Arguments

View source: R/helpers.R

Description

Look for string pattern in files and print file name on consule

Usage

1
2
look_in_files(pattern, file_pattern = ".R$", dir = "",
  full_path = FALSE, print_lines = FALSE, ...)

Arguments

pattern

A string. What to lookup. A regex pattern or exact string (by setting value = TRUE, for example).

file_pattern

A regex. Pattern used in list.files(). By default it is set to search files ending in '.R' (R script)

dir

A string. Directory to search within.

full_path

Logical. Whether to print full path of file.

print_lines

Logical. By default prints file name in which pattern was found.

...

Options passed onto grepl().


clarabicalho/replica documentation built on Nov. 4, 2019, 8:54 a.m.