BaseProvider: BaseProvider

BaseProviderR Documentation

BaseProvider

Description

BaseProvider

BaseProvider

Super class

charlatan::BareProvider -> BaseProvider

Active bindings

locale

(character) locale of this Provider.

Methods

Public methods

Inherited methods

Method check_locale()

check a locale to see if it exists, if not, stop with error message

Usage
BaseProvider$check_locale(x)
Arguments
x

a locale name, e.g, 'bg_BG'

Returns

returns nothing if locale is supported; stops w/ message if not


Method allowed_locales()

fetch the allowed locales for this provider

Usage
BaseProvider$allowed_locales()

Method new()

Create a new Provider object

Usage
BaseProvider$new()
Returns

A new object


Method print()

Print method for provider

Usage
BaseProvider$print(...)
Arguments
...

ignored by this method


Method clone()

The objects of this class are cloneable with this method.

Usage
BaseProvider$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Note

You cannot instantiate the Parent providers. You must use one of the localized one.

Examples

(x <- BaseProvider$new())

x$numerify("#%%asdf221?")
x$lexify("#%%asdf221?")
x$bothify("#%%asdf221?")

ropenscilabs/charlatan documentation built on Oct. 25, 2023, 12:26 a.m.