| LoremProvider | R Documentation |
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.
charlatan::BareProvider -> charlatan::BaseProvider -> LoremProvider
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()new()Create a new LoremProvider object
LoremProvider$new(sentence_punctuation = ".", word_connector = " ")
sentence_punctuation(character) End of sentence punctuation
word_connector(character) Default connector between words
A new LoremProvider object
word()Generate a random word
LoremProvider$word(ext_words = NULL)
ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
a single word
words()Generate a character vector of random words
LoremProvider$words(nb = 3, ext_words = NULL)
nb(integer) how many words to return
ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
many words
sentence()Generate a random sentence
LoremProvider$sentence( nb_words = 6, variable_nb_words = TRUE, ext_words = NULL )
nb_words(integer) around how many words the sentence should contain
variable_nb_wordsset to FALSE if you want exactly nb
words returned, otherwise the result may include a number of words
of nb +/-40% (with a minimum of 1)
ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
a single sentence
sentences()Generate a character vector of random sentences
LoremProvider$sentences(nb = 3, ext_words = NULL)
nb(integer) how many sentences to return
ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
many sentences
paragraph()Generate a single paragraph
LoremProvider$paragraph( nb_sentences = 3, variable_nb_sentences = TRUE, ext_words = NULL )
nb_sentences(integer) around how many sentences the paragraph should contain
variable_nb_sentencesset to FALSE if you want exactly nb
sentences returned, otherwise the result may include a number of
sentences of nb +/-40% (with a minimum of 1)
ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
a single paragraph
paragraphs()Generate many paragraphs
LoremProvider$paragraphs(nb = 3, ext_words = NULL)
nb(integer) how many paragraphs to return
ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
many paragraphs
text()Generate a random text string. Depending on the
max_nb_chars, returns a string made of words, sentences, or
paragraphs.
LoremProvider$text(max_nb_chars = 200, ext_words = NULL)
max_nb_charsMaximum number of characters the text should contain (minimum 5)
ext_wordsa character vector of words you would like to have instead of "Lorem ipsum"
character string of words
clone()The objects of this class are cloneable with this method.
LoremProvider$clone(deep = FALSE)
deepWhether to make a deep clone.
You cannot instantiate the Parent providers. You must use one of the localized one.
Other ParentProviders:
AddressProvider,
ColorProvider,
CompanyProvider,
InternetProvider,
JobProvider,
PersonProvider,
PhoneNumberProvider,
TaxonomyProvider,
UserAgentProvider
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.