R package to translate text using Yandex Translate API.
To install RYandexTranslate package:
library(devtools)
install_github("mukul13/RYandexTranslate")
To get free API key, sign up here
To list all functions supported by RYandexTranslate package
library(RYandexTranslate)
ls("package:RYandexTranslate")
To get a list of translation directions supported by the service
api_key="YOUR API KEY"
directions=get_translation_direction(api_key)
To detect the language of the specified text
data=detect_language(api_key,text="आप कैसे है?")
To translate text to the specified language
data=translate(api_key,text="how are you?",lang="en-hi" )