set_yelp_locale: Get or set a default locale

Description Usage Arguments Details Value See Also Examples

View source: R/locale.R

Description

Gets or sets a default locale for the R session.

Usage

1
2
3
set_yelp_locale(locale = "en_US")

get_yelp_locale()

Arguments

locale

A string naming the locale. See SUPPORTED_LOCALES for allowed values.

Details

The locale is stored in an environment variable named YELP_LOCALE.

Value

set_yelp_locale is invoked for the side-effect of setting an environment variable to store the default locale. The previous value of this variable is invisibly returned. get_yelp_locale gets the current yelp locale from the environment, defaulting to "en_US" if it has not been set.

See Also

SUPPORTED_LOCALES

Examples

1
set_yelp_locale("zh_HK")

richierocks/yelp documentation built on Oct. 17, 2018, 2:21 a.m.