inside | R Documentation |
Search for a string inside the files of a folder and return where the string is found.
The pattern for files that must be included uses regex for filtering.
inside(
text = stop("A text to be searched for is necessary"),
path = ".",
pattern = "*\\.R$",
showallfilenames = FALSE,
...,
fixed = TRUE,
ignore.case = FALSE
)
text |
Text to search in files |
path |
Path of the folder to search in |
pattern |
Pattern for file names to search in |
showallfilenames |
logical. Show all the filenames search for in |
... |
Options for readLines(), example warn = FALSE |
fixed |
logical. If TRUE, pattern is a string to be matched as is. Overrides all conflicting arguments (see gsub) |
ignore.case |
logical. if FALSE, the pattern matching for text is case sensitive and if TRUE, case is ignored during matching. |
inside Search a string within files of a folder
Return an invisible vector with filenames in which the pattern occurs
Marc Girondot marc.girondot@gmail.com
## Not run:
library(HelpersMG)
# Search for files in path with names based on pattern that have the string search inside.
inside("embryogrowth", path=".", pattern="*\\.R$")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.