userInfo: provides general information about a Wikipedia user

Description Usage Arguments Details Value Author(s) Examples

Description

provides general information about a specific Wikipedia user

Usage

1
2
userInfo(user.name = NULL, domain = "en",
  usprop = "groups|implicitgroups|rights|editcount|registration|emailable|gender")

Arguments

user.name

a character value for the name of a user

domain

a character value providing the language of the wikipedia page.The default value is "en" for "english language".

usprop

What pieces of information to include (separate with '|'):

  • groups: lists all the groups the user(s) belongs to

  • implicitgroups: lists all the groups a user is automatically a member of

  • rights: lists all the rights the user(s) has

  • editcount: adds the user's edit count

  • registration: adds the user's registration timestamp

  • emailable: tags if the user can and wants to receive email through [[Special:Emailuser]]

  • gender: tags the gender of the user. Returns "male", "female", or "unknown"

Default: groups|implicitgroups|rights|editcount|registration|emailable|gender

Details

This function uses the MediaWiki API query syntax: "list=users". For more details, see https://www.mediawiki.org/wiki/API:Users

Value

an object of class userInfoClass containing:

Author(s)

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
LouiseInfo <- userContribs(user.name = "Louise", domain = "en")
LouiseInfo
bobInfo <- userInfo(user.name = "bob", domain = "en")
bobInfo
## try a user that does not exist (at the moment of the redaction of this help page)
userInfo(user.name="Louise Baschet", domain ="fr")

## End(Not run)

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