Description Usage Arguments Value Examples
View source: R/wiki_inthenews.R
'wiki_inthenews()' generates news items from the Wikipedia main page on a specified date.
1 2 3 4 5 |
n_facts |
An integer determining the number of facts that will be generated, up to a limit of the maximum facts for the date specified. |
date |
A date string of the form YYYY-MM-DD. Default value is a random date since 1 January 2015. |
bare_fact |
Logical. Determining whether the fact should be quoted as is or surrounded by a preamble and courtesy statement. |
A vector of strings with random 'in the news' items from Wikipedia's main page, if it exists for the date specified - otherwise "I got nothin'"
1 | wiki_inthenews(n_facts = 1, date = '2020-05-02')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.