Description Usage Arguments Examples
This function searches for text in text files with (by default) R and Rmd extension.
1 2 |
string |
text string to search for. If fixed = FALSE (the default), regular expressions may be used |
dir |
directory (by default, the working directory) |
extension |
file extension of files to search, by default .R and .Rmd |
pattern |
if you want to search for files with a particular name (takes presedence over extension) |
fixed |
if TRUE, the literal string will be searched for; if FALSE (the default), regular expressions may be used (see ?grep) |
ignore.case |
if TRUE (default), character case will be ignored (i.e., if you search for "Md" the function will search for "md", "mD" and "MD" as well) |
deep |
if TRUE, it will also search in subdirectories |
1 2 3 4 | search_text("Mod. 1")
search_text("image.plot(", "H:/Documents/seksjon 214/2015_01_FjordBloom/Analyser", fixed = TRUE, deep = TRUE)
# Use fixed = TRUE when the search text contains e.g. parantheses:
search_text("save(", fixed = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.