Creates files and file types.
See also
Other en:
AddressProvider_en_GB
,
AddressProvider_en_NZ
,
AddressProvider_en_US
,
ColorProvider_en_US
,
CompanyProvider_en_US
,
ElementProvider_en_US
,
InternetProvider_en_AU
,
InternetProvider_en_US
,
JobProvider_en_US
,
LoremProvider_en_US
,
PersonProvider_en_GB
,
PersonProvider_en_NZ
,
PersonProvider_en_US
,
PhoneNumberProvider_en_AU
,
PhoneNumberProvider_en_CA
,
PhoneNumberProvider_en_GB
,
PhoneNumberProvider_en_NZ
,
PhoneNumberProvider_en_US
,
PhoneNumberProvider_es_MX
,
SSNProvider_en_US
,
TaxonomyProvider_en_US
,
UserAgentProvider_en_US
,
english-language
Other US:
AddressProvider_en_US
,
ColorProvider_en_US
,
CompanyProvider_en_US
,
ElementProvider_en_US
,
InternetProvider_en_US
,
JobProvider_en_US
,
LoremProvider_en_US
,
PersonProvider_en_US
,
PhoneNumberProvider_en_US
,
SSNProvider_en_US
,
TaxonomyProvider_en_US
,
UserAgentProvider_en_US
Super classes
charlatan::BareProvider
-> charlatan::BaseProvider
-> charlatan::FileProvider
-> FileProvider_en_US
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()
charlatan::BaseProvider$allowed_locales()
charlatan::BaseProvider$check_locale()
charlatan::BaseProvider$print()
charlatan::FileProvider$file_extension()
charlatan::FileProvider$file_name()
charlatan::FileProvider$file_path()
charlatan::FileProvider$initialize()
charlatan::FileProvider$mime_type()
Examples
(x <- FileProvider_en_US$new())
#> < FileProvider >
#> locale: en_US
x$locale
#> [1] "en_US"
x$mime_type()
#> [1] "image/tiff"
x$file_extension()
#> [1] "jpg"
x$file_name()
#> [1] "mother.json"
x$file_path()
#> [1] "/camera/second.mp4"
x$file_path(depth = 2)
#> [1] "/allow/action/environment.mp3"
x$file_path(depth = 3)
#> [1] "/gun/close/better/person.jpeg"
x$file_path(depth = 6)
#> [1] "/participant/once/left/eight/like/national/after.mp4"