Description Usage Arguments Value Examples
Takes a file, R code or R expression and replaces all text constants by gettext(text_constant)
.
The replacement is not done inside gettext
, G
, ngettext
, N
, library
and
require
.
If expr
is a character then gettextify
tries first to open a file with the name.
If this fails then it wil be assumed that expr
contains valid R code.
1 | gettextify(expr, exclude = NULL)
|
expr |
character or expression |
exclude |
character: names of further function to exclude from replacement |
character vector with modified code
1 2 3 | gettextify ('x<-"a"')
gettextify (system.file(package='gettext', 'shiny', 'app1', 'app.R'))
gettextify (parse(system.file(package='gettext', 'shiny', 'app1', 'app.R')))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.