Description Usage Arguments Details Value Author(s) See Also Examples
lists contributions for a specific user: discussions for Talk pages, and revisions for Subject pages.
1 2 | userContribs(user.name = NULL, domain = "en",
ucprop = "ids|title|timestamp|comment|sizediff|flags")
|
user.name |
a character value providing the name of the user |
domain |
a character value providing the language of the wikipedia page. The default value is "en" for "english language". |
ucprop |
Include informations (separate with '|') :
Default: ids|title|timestamp|comment|sizediff|flags |
This function uses the API query syntax: "list=usercontribs". For more details, see https://www.mediawiki.org/wiki/API:Usercontribs Additionnally to the titles of the modified pages, this function always returns in the contribs item the ns for namespace (identifcation of the type of pages), the nscat for the category of the pages (Subject, Talk, or Virtual), and the subject of the pages.
an object of class userContribsClass
:
call
the command line
user
a vector containing the user name and the user identifier
contribs
a data frame containing the asked properties of the revisions.
If ids is asked, the corresponding results are pageid, revid, and parentid.
Three others informations are automatically added :
ns
, numbers of the namespaces (identification of the type of pages, defining nscat et nssubj, the two next variables),
nscat
, the categories of linked pages (Subject, Talk, or Virtual),
nssubj
, the subjects of the linked pages (Main Article, User, Wikipedia, File, MediaWiki, Template, Help, Category, Protal, Book, Draft, Education Program, TimedText, Module, Topic, Special, Media, Other) .
This item is provided if the user has at least one contribution.
For more details about namespace, see http://www.mediawiki.org/wiki/Help:Namespaces and http://en.wikipedia.org/wiki/Wikipedia:Namespace#Subject_namespaces
testWikiUser
A list of three elements.
The first is takeOnlyFirst
, a boolean indicating if the class of user.name
parameter is invalid,
for example vector, list, matrix..., and in that case, the only the first element is considered.
The second element is test
, an integer with value:
4 for invalid domain,
3 for an empty parameter user,
2 when Wikipedia does not have an user with this exact name,
0 for valid existing user.
The last element, warnMessage
, is a vector of warning messages.
Avner Bar-Hen, Louise Baschet, Francois-Xavier Jollois, Jeremie Riou
userInfo
1 2 3 4 5 6 | ## Not run:
LouiseContribs <- userContribs(user.name = "Louise", domain = "en")
## try a user that does not exist (at the moment of the redaction of this help page)
userContribs(user.name="Louise Baschet", domain ="fr")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.