Description Usage Arguments Details Value
Find scripts that have a pattern that you specify with a regular expression.
1 2 | findScriptsByPattern(path = ".", filename_pattern = ".R$",
recursive = FALSE, code_pattern)
|
path |
a character vector of full path names; the default corresponds to
the working directory, |
filename_pattern |
a regular expression- default is |
recursive |
logical. Should the listing recurse into directories? |
code_pattern |
character vector of regular expressions (or simp;ly characters) to be matched against text in the script while scanning through scripts. If a character vector of length 2 or more is supplied, the first element is used with a warning. |
Scans scripts and finds which scripts have a sought pattern, E.G. 'x <- x^2'
.
This function scans through scripts and will include obsolate scripts that do
not run due to typos and bad syntax in its search.
This function will find a pattern such as 'x <- x^2'
, unlike findScriptsByPattern
.
A data.frame with four columns:
script - The name of the script containing the target,
linenum - The line number on which the target is found,
col - the number of characters into the line that the target can be found,
line - the target within its context
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.