Description Usage Arguments Value Author(s)
internal function to test validity of a wikidepia domain and user,
called in userInfo
and userContribs
functions.
1 | testWikiUser(user.name = NULL, domain = "en")
|
user.name |
a character value providing the name of the specific wikipedia user |
domain |
a character value providing the language of the wikipedia page.The default value is "en" for "english language". |
a list of four 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.name,
2 when Wikipedia does not have an user with this exact name,
0 for valid existing user.name.
The third element is user
, a vector containing the user name, the user identifier, and domain. If the user does not exist, this item is not created.
The last element, warnMessage
, is a vector of warning messages.
Avner Bar-Hen, Louise Baschet, Francois-Xavier Jollois, Jeremie Riou
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.