| 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
-
filewith file name -
linethe line number -
typeif a string constant (STR_CONST), agetMsg(GETMSG), or asetMsg(SETMSG) was found -
textthe text of the string constant or the key used ingetMsgorsetMsg
Examples
findText(system.file("messages", "messages.R", package="stranslate"))
[Package stranslate version 0.1.3 Index]