lorem ipsum methods for generating random words in a language. 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 ParentProviders:
AddressProvider,
ColorProvider,
CompanyProvider,
InternetProvider,
JobProvider,
PersonProvider,
PhoneNumberProvider,
TaxonomyProvider,
UserAgentProvider
Super classes
charlatan::BareProvider -> charlatan::BaseProvider -> LoremProvider
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()
Method new()
Create a new LoremProvider object
Usage
LoremProvider$new(sentence_punctuation = ".", word_connector = " ")Method words()
Generate a character vector of random words
Method sentence()
Generate a random sentence
Arguments
nb_words(integer) around how many words the sentence should contain
variable_nb_wordsset to
FALSEif you want exactlynbwords returned, otherwise the result may include a number of words ofnb+/-40% (with a minimum of 1)ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
Method sentences()
Generate a character vector of random sentences
Method paragraph()
Generate a single paragraph
Arguments
nb_sentences(integer) around how many sentences the paragraph should contain
variable_nb_sentencesset to
FALSEif you want exactlynbsentences returned, otherwise the result may include a number of sentences ofnb+/-40% (with a minimum of 1)ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
Method paragraphs()
Generate many paragraphs
Method text()
Generate a random text string. Depending on the
max_nb_chars, returns a string made of words, sentences, or
paragraphs.
