BaseProvider {charlatan} | R Documentation |
BaseProvider
Description
BaseProvider
BaseProvider
Super class
charlatan::BareProvider
-> BaseProvider
Active bindings
locale
(character) locale of this Provider.
Methods
Public methods
Inherited methods
charlatan::BareProvider$bothify()
charlatan::BareProvider$lexify()
charlatan::BareProvider$numerify()
charlatan::BareProvider$random_digit()
charlatan::BareProvider$random_digit_not_zero()
charlatan::BareProvider$random_digit_not_zero_or_empty()
charlatan::BareProvider$random_digit_or_empty()
charlatan::BareProvider$random_element()
charlatan::BareProvider$random_element_prob()
charlatan::BareProvider$random_int()
charlatan::BareProvider$random_letter()
charlatan::BareProvider$randomize_nb_elements()
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?")
[Package charlatan version 0.6.1 Index]