bggSearch | R Documentation |
Search for items on the BoardGameGeek with a given query. See
bggAPI()
for more details on inherited slots and methods.
Note that the result is trimmed to items with unique IDs. Due to
XML API2 Search
returning multiple items for a single ID with different
types, variable 'type'
might be not accurately represented.
bggAnalytics::bggAPI
-> bggSearch
query
A single string with the wanted query.
new()
Object initialization.
bggSearch$new(query, params = NULL)
query
a single string, query used to perform the search.
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,
type
[NULL
] — a single string, type of things
to look for. Possible values: 'rpgitem'
, 'videogame'
,
'boardgame'
, 'boardgameaccessory'
,
'boardgameexpansion'
. NULL
uses all possible values.
exact
[FALSE
] — a boolean value, should the
results be restricted to items that match the query
exactly.
print()
Print object information.
bggSearch$print()
clone()
The objects of this class are cloneable with this method.
bggSearch$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.