View source: R/archive/findText.R View source: R/findText.R
| findText | R Documentation |
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!
findText(files, pattern = "\\w+{2,}")
files |
character: names of R files to analyse |
pattern |
character: pattern to match a string (default: |
a data frame with the columns
file with file name
line the line number
type if a string constant (STR_CONST), a getMsg (GETMSG), or a setMsg (SETMSG) was found
text the text of the string constant or the key used in getMsg or setMsg
findText(system.file("messages", "messages.R", package="stranslate"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.