findText {stranslate} | R Documentation |
findText
Description
Extract all texts, getMsg
, or setMsg
calls in the R files given.
Note that the '
and "
are part of the string, thus 'ROUND'
has a length of 7!
Usage
findText(files, pattern = "\\w+{2,}")
Arguments
files |
character: names of R files to analyse |
pattern |
character: pattern to match a string (default: |
Value
a data frame with the columns
-
file
with file name -
line
the line number -
type
if a string constant (STR_CONST
), agetMsg
(GETMSG
), or asetMsg
(SETMSG
) was found -
text
the text of the string constant or the key used ingetMsg
orsetMsg
Examples
findText(system.file("messages", "messages.R", package="stranslate"))
[Package stranslate version 0.1.3 Index]