Translates help

lang_help

Description

Translates a given topic into a target language. It uses the lang argument to determine which language to translate to. If not passed, this function will look for a target language in the LANG and LANGUAGE environment variables to determine the target language. If the target language is English, no translation will be processed, so the help returned will be the original package’s documentation.

Usage


lang_help(topic, package = NULL, lang = NULL, type = getOption("help_type"))

Arguments

Arguments Description
topic The topic to search for
package The R package to look for the topic
lang Language to translate the help to
type Produce “html” or “text” output for the help. It default to getOption("help_type")