translate_string | R Documentation |
Takes an R expression and converts it to English by matching recognised symbols with an opinionated list of English 'translations'.
translate_string(expression, speak = TRUE, function_call_end = "of ")
translate(expression, speak = TRUE, function_call_end = "of ")
expression |
An R expression (bare if |
speak |
Logical. Do you want your system to try and say the English expression? macOS only. Requires speakers on your machine. |
function_call_end |
Character, what should be added after a function
call, e.g. setting this parameter to "of", this function translates
|
An r2eng object, which is a list with three elements: the input R expression, the 'translated' English expression and a data frame showing the translation of each R element.
## Not run:
translate(variable <- 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.