with_i18n_state: With i18n state

with_i18n_stateR Documentation

With i18n state

Description

Sets the current internalisation state (I18N_STATE) to a provided dictionary and language, and evaluates a provided expression. This macro is called automatically within new_timeline and most users will never need to call it directly.

Usage

with_i18n_state(
  dictionary = stop("dictionary not supplied"),
  language = stop("language not supplied"),
  x = stop("x not supplied")
)

Arguments

dictionary

An internationalisation dictionary as created by i18n_dict.

language

A language code corresponding to a language supported in dictionary.

x

Expression to evaluate.

Value

The result of evaluating x using the provided dictionary and language.


pmcharrison/psychTestR documentation built on Nov. 10, 2024, 9:03 p.m.