Skip to contents

End users will probably want to use this through the addin: RStudio > Addings > Translate examiner files.

Usage

translate(rmd, langpair)

Arguments

rmd

Path to file

langpair

A source|target language pair, e.g. "en|es" from English to Spanish, or "nob|nno" from Norwegian bokmal to nynorsk. More information: Apertium list of language pairs

Value

Path to translated file, with filename suffixed by the target language code. For example, translate("test.Rmd", "nob|nno") would return "test_nno.Rmd".