bggCollection | R Documentation |
Access the data of a given user's collection. See
bggAPI()
for more details on inherited slots and methods.
bggAnalytics::bggAPI
-> bggCollection
username
A single string, name of a user whose collection should be fetched.
new()
Object initialization.
bggCollection$new(username = NULL, params = NULL)
username
a single string with a BoardGameGeek name of a user whose
collection is to be fetched.
NULL
is filled by default with getOption(bggAnalytics.username)
.
params
a list of object parameters. If not all the parameters are
included in the list, default values are used (NULL
instead of
the list is possible for all the default parameters).
Following parameters are allowed for the bggGames
class with
default values in brackets:
pretty_names
[FALSE
] — a boolean value,
should the object should use pretty names,
stats
[TRUE
] — a boolean value, should the
ranking and rating stats be included for every item. Note that some
variables require that stats
is TRUE
.
brief
[FALSE
] — a boolean value, should the
results be abbreviated.
own, rated, played, comment, trade, want, wishlist
[NULL
] — a boolean value, FALSE
excludes items with a
given status while TRUE
includes only them. NULL
returns items regardless of the status.
wishlistpriority
[NULL
] — a positive integer
between 1 and 5, returns only items with a given wishlist
priority. NULL
returns items regardless of the priority.
minrating, rating
[NULL
] — a positive integer
between 1 and 10, returns only items with a given minimum rating
(minrating
) or maximum rating (rating
). NULL
returns items regardless of the rating.
print()
Print object information.
bggCollection$print()
clone()
The objects of this class are cloneable with this method.
bggCollection$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.