tw_set_language: Set language to be used by all functions

View source: R/tw_language_settings.R

tw_set_languageR Documentation

Set language to be used by all functions

Description

Defaults to "en".

Usage

tw_set_language(language = NULL)

tw_get_language(language = NULL)

Arguments

language

A character vector of length one, with a string of two letters such as "en". For a full list of available values, see: https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all

Value

A two letter code for the language, if previously set; the same language as given to the function; or the default, en is none is given.

Examples


if (interactive()) {
  tw_set_language(language = "en")
}


tw_get_language()

giocomai/tidywikidatar documentation built on Aug. 2, 2024, 5:33 p.m.