Description Usage Arguments Value Examples
Returns the number of times a searchterm appears in each file in a path (defaults to working directory).
1 2 3 4 5 6 7 |
searchterms |
String/ list of strings to search for. |
dir |
Path to the directory. |
rm |
Logical option for removing files with no hits from the output. |
filetypes |
String/list of strings to be recognised in file endings. |
escape |
Logical option for adding escape characters to special characters. |
Data frame containing the file paths, number of hits and search terms found in a directory.
1 2 3 4 5 | scriptsearch("text")
scriptsearch("text", filetypes = "txt")
data <- scriptsearch("text", rm = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.