This function translates text with the 'TexTra' machine translation API.
Examples
if (FALSE) { # \dontrun{
text <- "Hello world"
key <- "abcdefghijklmnopqrstuvw01234567890abcdef1" # API key
secret <- "xyzabcdefghijklmnopqrstuvw012345" # API secret
name <- "login_ID" # login_ID
params <- gen_params(key = key, secret = secret, name = name)
translated <-
textra(text, params, model = "transLM", from = "en", to = "ja")
translated
} # }