Learn R Programming

deepRstudio (version 0.0.9)

deepel_rstudioapi_2FR: Translate Selected Text to French via DeepL API

Description

Translate the selected text in RStudio into French using the DeepL API with auto-detection of the source language. This function uses free-version DeepL API (https://api-free.deepl.com/v2/translate).

Usage

deepel_rstudioapi_2FR()

Arguments

Value

A message indicating the completion of the translation. No value is returned.

Author

Satoshi Kume

Details

Translate Selected Text to French via DeepL API

This function uses the rstudioapi to execute French translation of the selected text using the DeepL API. It will attempt to auto-detect the language of the text and translate it into French. First, select the text and execute "DeepL Translation into French" from addins. As a result, the selected part will be translated into French.

Examples

Run this code
if (FALSE) {

#Select the following text: "La selección está traducida al inglés."
#Then, execute "DeepL Translation into French" from RStudio addins.

}

Run the code above in your browser using DataLab