Methods for Lorem Ipsum generation. Lorem Ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content.
See also
Other en:
AddressProvider_en_GB
,
AddressProvider_en_NZ
,
AddressProvider_en_US
,
ColorProvider_en_US
,
CompanyProvider_en_US
,
ElementProvider_en_US
,
FileProvider_en_US
,
InternetProvider_en_AU
,
InternetProvider_en_US
,
JobProvider_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
,
FileProvider_en_US
,
InternetProvider_en_US
,
JobProvider_en_US
,
PersonProvider_en_US
,
PhoneNumberProvider_en_US
,
SSNProvider_en_US
,
TaxonomyProvider_en_US
,
UserAgentProvider_en_US
Super classes
charlatan::BareProvider
-> charlatan::BaseProvider
-> charlatan::LoremProvider
-> LoremProvider_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::LoremProvider$initialize()
charlatan::LoremProvider$paragraph()
charlatan::LoremProvider$paragraphs()
charlatan::LoremProvider$sentence()
charlatan::LoremProvider$sentences()
charlatan::LoremProvider$text()
charlatan::LoremProvider$word()
charlatan::LoremProvider$words()
Examples
x <- LoremProvider_en_US$new()
x$word()
#> [1] "manage"
x$words(3)
#> [1] "north" "coach" "message"
x$words(6)
#> [1] "international" "director" "air" "respond"
#> [5] "whom" "push"
x$sentence()
#> [1] "Guy east part around everything rate go politics."
x$paragraph()
#> [1] "Feeling likely board policy bill church. Travel bar tree cover argue. Push sort along project team my visit family."
x$paragraphs(3)
#> [1] "Investment program population long center. Plant wish turn attack your alone factor financial. Actually catch result certain. Always build term."
#> [2] "Worry responsibility fall over. Particular decision campaign treatment big hundred. Perform sense arrive PM as view."
#> [3] "Southern sing level. Show analysis western wait then land."
cat(x$paragraphs(6), sep = "\n")
#> Despite offer wide something trade local data score. Success later truth.
#> Some nearly care do born. Interest culture around when American theory now. Plant poor yard next. Him remember event.
#> Here scientist if choice against join. Who section wear easy.
#> Young meeting on interesting brother American safe begin. Either pick letter probably pattern degree official pass. Few son usually left.
#> Piece place consumer technology training it coach. True age information party his budget necessary. Star indeed show.
#> How pick economy food. Million road surface.
x$text(19)
#> [1] "Ten boy own skill."
x <- LoremProvider_en_US$new(word_connector = " --- ")
x$paragraph(4)
#> [1] "Doctor --- shoulder --- system --- agree. --- Government --- type --- interest."