userContribs: lists contributions for a specific user

Description Usage Arguments Details Value Author(s) See Also Examples

Description

lists contributions for a specific user: discussions for Talk pages, and revisions for Subject pages.

Usage

1
2
userContribs(user.name = NULL, domain = "en",
  ucprop = "ids|title|timestamp|comment|sizediff|flags")

Arguments

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 '|') :

  • ids the page ID and revision ID

  • title the title and namespace ID of the page. This parameter is not optional.

  • timestamp the timestamp of the edit, i.e. day and time

  • comment the comment of the edit

  • parsedcomment the parsed comment of the edit

  • size the new size of the edit

  • sizediff the size delta of the edit against its parent

  • flags flags of the edit

  • patrolled patrolled edits

  • tags tags for the edit

Default: ids|title|timestamp|comment|sizediff|flags

Details

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.

Value

an object of class userContribsClass:

Author(s)

Avner Bar-Hen, Louise Baschet, Francois-Xavier Jollois, Jeremie Riou

See Also

userInfo

Examples

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)

WikipediaR documentation built on May 2, 2019, 8:36 a.m.