Description Usage Arguments Value Examples
Reads in a .R code file by line and searches for a given pattern.
1 | search_code(.file, pattern, quiet = TRUE, ...)
|
.file |
character. The file to read in and search. |
pattern |
character. A pattern to pass to grep, in RegExp format. |
quiet |
logical. Should a warning be thrown if the pattern is not in the file? |
... |
pass through additional options |
a data frame containing the line number and line text where the pattern was found in the file.
1 2 3 4 | ## Not run:
search_code("./R/misc_toolr.R", "export")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.