search_files: search_files

Description Usage Arguments Value Author(s)

View source: R/tfse.search_files.r

Description

Returns matching files and line numbers of given string pattern.

Usage

1
2
3
4
5
6
7
search_files(
  x,
  path = ".",
  recursive = TRUE,
  all.files = FALSE,
  textOnly = TRUE
)

Arguments

x

Pattern.

path

Path on which to restrict search. Defaults to current working directory.

recursive

logical

all.files

logical. Default FALSE excludes dot files

textOnly

logical. Default TRUE. Looks inside .r .R .Rmd .md .html .txt .cpp .h files.

Value

Output from terminal - file name, line number, and preview of matching text

Author(s)

Michael Wayne Kearney


AlbanSagouis/myToolbox documentation built on Feb. 1, 2021, 1:08 p.m.