find_in_files: Find text in files

Description Usage Arguments Value Author(s) Examples

View source: R/RFunctions.R

Description

Finds literal text in files. Useful if, for example, you want to replace a function name in all files of an R-package, or if you want to see whether a function can be deprecated because it is not used.

Usage

1
find_in_files(text, max_size = 1e+05, dir = getwd(), ...)

Arguments

text

Character vector. Literal text to search

max_size

Numeric. Maximum file size to read.

dir

Character. Which directory to search.

...

Additional arguments, passed on to list.files.

Value

Nothing. Prints directly to the console.

Author(s)

Caspar J. van Lissa

Examples

1
# Make me!

cjvanlissa/motley documentation built on Sept. 23, 2019, 7:39 p.m.