wiki_con(language, project = c("wikipedia", "commons", "species",
"wikisource", "wikiquote", "wikinews",
"wikibooks", "wikiversity", "wikivoyage"),
w_timeout = 5)
The language code and project names provided by the user are checked against an object containing all 'legitimate' permutations of languages and project types - in other words, all Wikipedia wikis that are not private, closed, dead, or otherwise restricted. This list is stored as an .RData file, "wikis", which will be updated as the package is updated. To allow for the likelihood that the active projects change in quantity and variety over time, a function, RDataRebuild, is provided in this package to allow the end user to update the wiki listings whenever they want.
Wikidata support is likely to be provided through a different package entirely, because it has a different API structure.
RDataRebuild
#Create con object
con <- wiki_con(language = "en", project = "wikisource")
Run the code above in your browser using DataLab