Title: | Client for the FIVB VIS Web Service \url{https://www.fivb.org/VisSDK/VisWebService/} |
---|---|
Description: | Client for the FIVB VIS web service. |
Authors: | Ben Raymond [aut, cre], Adrien Ickowicz [aut], Tyler Widdison [aut], openvolley.org [org] |
Maintainer: | Ben Raymond <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.6 |
Built: | 2024-10-21 04:47:44 UTC |
Source: | https://github.com/openvolley/fivbvis |
By default, fivbvis starts with session-specific caching (equivalent to running v_caching(TRUE); v_cache_dir("session")
).
v_caching(caching) v_cache_dir(cache_dir)
v_caching(caching) v_cache_dir(cache_dir)
caching |
logical or string: if |
cache_dir |
string: either
|
The caching setting (for v_caching
) or cache directory (for v_cache_dir
) after applying any provided parameters
v_caching(TRUE) ## turn caching on v_caching(FALSE) ## turn caching off v_caching("refresh") ## contents in cache will be updated v_cache_dir() ## return current cache dir ## Not run: v_cache_dir("session") ## use per-session cache v_cache_dir("user") ## use persistent, user-specific cache v_cache_dir("c:/my/cache/dir") ## use specific dir ## End(Not run)
v_caching(TRUE) ## turn caching on v_caching(FALSE) ## turn caching off v_caching("refresh") ## contents in cache will be updated v_cache_dir() ## return current cache dir ## Not run: v_cache_dir("session") ## use per-session cache v_cache_dir("user") ## use persistent, user-specific cache v_cache_dir("c:/my/cache/dir") ## use specific dir ## End(Not run)
Return the fields for a given VIS data type
v_fields(type)
v_fields(type)
type |
string: the data type, currently one of "Volleyball Tournament", "Volleyball Tournament Ranking", "Volleyball Tournament Filter", "Volleyball Player", "Volleyball Match" |
A character vector of field names
https://www.fivb.org/VisSDK/VisWebService/
v_fields("Volleyball Tournament")
v_fields("Volleyball Tournament")
Retrieve a country flag image
v_flag(country_code)
v_flag(country_code)
country_code |
string: the ISO 3166-1 alpha-2 code of the country. For federations, you need to convert the federation code to the equivalent country code. If there is no equivalent country (for ENG, NIR, SCO, WAL), you can use the 3 letters federation code to retrieve the flag. |
Path to image file
https://www.fivb.org/VisSDK/VisWebService/#Country%20flags%20(small).html
## Not run: v_flag("AU") ## End(Not run)
## Not run: v_flag("AU") ## End(Not run)
Get a beach volleyball match
v_get_beach_match(no, fields)
v_get_beach_match(no, fields)
no |
integer: match number |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachMatch.html
## Not run: v_get_beach_match(15592) ## End(Not run)
## Not run: v_get_beach_match(15592) ## End(Not run)
Get a list of beach volleyball matches
v_get_beach_match_list(fields = v_fields("Beach Match"), version, filter)
v_get_beach_match_list(fields = v_fields("Beach Match"), version, filter)
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachMatchList.html
## Not run: v_get_beach_match_list() ## End(Not run)
## Not run: v_get_beach_match_list() ## End(Not run)
Request to get a beach volleyball Olympic Selection ranking
v_get_beach_olympic_selection_ranking( gender, gamesyear, onlyselected, referencedate, fields = v_fields("Beach Olympic Selection Ranking") )
v_get_beach_olympic_selection_ranking( gender, gamesyear, onlyselected, referencedate, fields = v_fields("Beach Olympic Selection Ranking") )
gender |
character: gender of the olympic ranking selection |
gamesyear |
integer: year to return ranking selection. if this parameter is not specified, the web service will return the ranking for the latest olympic games with a ranking. |
onlyselected |
logical: the selection status of the returned teams. If |
referencedate |
Date: reference date of the ranking: when the ranking has been calculated. If there is no Olympic Games selection ranking calculated at the specified date, the returned ranking will be empty. If this parameter is not specified, the web service will return the ranking for the latest reference date |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachOlympicSelectionRanking.html
## Not run: v_get_beach_olympic_selection_ranking("W") ## End(Not run)
## Not run: v_get_beach_olympic_selection_ranking("W") ## End(Not run)
Get a beach volleyball round
v_get_beach_round(no, fields)
v_get_beach_round(no, fields)
no |
integer: round number |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachRound.html
## Not run: v_get_beach_round(3054) ## End(Not run)
## Not run: v_get_beach_round(3054) ## End(Not run)
Get a list of beach volleyball rounds
v_get_beach_round_list(fields = v_fields("Beach Round"), version, filter)
v_get_beach_round_list(fields = v_fields("Beach Round"), version, filter)
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachRoundList.html
## Not run: v_get_beach_round_list() ## End(Not run)
## Not run: v_get_beach_round_list() ## End(Not run)
Request to get the ranking of a beach volleyball round
v_get_beach_round_ranking(no, fields = v_fields("Beach Round Ranking"))
v_get_beach_round_ranking(no, fields = v_fields("Beach Round Ranking"))
no |
integer: number of the beach volleyball round |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachRoundRanking.html
## Not run: v_get_beach_round_ranking(980) ## End(Not run)
## Not run: v_get_beach_round_ranking(980) ## End(Not run)
Get a beach volleyball team
v_get_beach_team(no, fields)
v_get_beach_team(no, fields)
no |
integer: team number |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachTeam.html
## Not run: v_get_beach_team(375442) ## End(Not run)
## Not run: v_get_beach_team(375442) ## End(Not run)
Get a list of beach volleyball teams
v_get_beach_team_list(fields = v_fields("Beach Team"), version, filter)
v_get_beach_team_list(fields = v_fields("Beach Team"), version, filter)
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachTeamList.html
## Not run: v_get_beach_team_list() ## End(Not run)
## Not run: v_get_beach_team_list() ## End(Not run)
Get a beach tournament
v_get_beach_tournament(no, fields)
v_get_beach_tournament(no, fields)
no |
integer: the number of the tournament |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachTournament.html
## Not run: v_get_beach_tournament(502) ## End(Not run)
## Not run: v_get_beach_tournament(502) ## End(Not run)
Get a list of beach tournaments
v_get_beach_tournament_list( fields = v_fields("Beach Tournament"), version, filter )
v_get_beach_tournament_list( fields = v_fields("Beach Tournament"), version, filter )
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachTournament.html
## Not run: v_get_beach_tournament_list() ## End(Not run)
## Not run: v_get_beach_tournament_list() ## End(Not run)
Request to get the ranking of a beach volleyball tournament
v_get_beach_tournament_ranking( no, phase, fields = v_fields("Beach Tournament Ranking") )
v_get_beach_tournament_ranking( no, phase, fields = v_fields("Beach Tournament Ranking") )
no |
integer: number of the beach volleyball tournament |
phase |
string: phase for which to return the ranking ("Qualification" or "MainDraw") |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachTournamentRanking.html
## Not run: v_get_beach_tournament_ranking(503) ## End(Not run)
## Not run: v_get_beach_tournament_ranking(503) ## End(Not run)
Request to get a beach volleyball World Tour ranking
v_get_beach_world_tour_ranking( gender, number, referencedate, fields = v_fields("Beach World Tour Ranking") )
v_get_beach_world_tour_ranking( gender, number, referencedate, fields = v_fields("Beach World Tour Ranking") )
gender |
character: gender of the teams to retrieve the ranking for |
number |
integer: number of entries to return |
referencedate |
date: reference date of the ranking when the ranking has been calculated. YYY-MM-DD. if there is no World Tour ranking calculated at the specified date, the returned ranking will be empty. if this parameter is not specified, the web service will return the ranking for the latest reference date. |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetBeachWorldTourRanking.html
## Not run: v_get_beach_world_tour_ranking("W") ## End(Not run)
## Not run: v_get_beach_world_tour_ranking("W") ## End(Not run)
Get an event
v_get_event(no, fields)
v_get_event(no, fields)
no |
integer: the number of event |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetEvent.html
## Not run: v_get_event(1) ## End(Not run)
## Not run: v_get_event(1) ## End(Not run)
Get an event list
v_get_event_list(fields = v_fields("Event"), version, filter)
v_get_event_list(fields = v_fields("Event"), version, filter)
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetEventList.html
## Not run: v_get_event_list() ## End(Not run)
## Not run: v_get_event_list() ## End(Not run)
Get a player
v_get_player(no, fields)
v_get_player(no, fields)
no |
integer: the number of the player |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetPlayer.html
## Not run: v_get_player(100002) ## End(Not run)
## Not run: v_get_player(100002) ## End(Not run)
Get a list of press releases
v_get_press_release_list( no, startindex = 1, filter, fields = v_fields("Press Release") )
v_get_press_release_list( no, startindex = 1, filter, fields = v_fields("Press Release") )
no |
integer: the number of press releases to return |
startindex |
integer: index of the first press release to return |
filter |
list: (currently ignored) |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetPressReleaseList.html
## Not run: v_get_press_release_list(10) ## End(Not run)
## Not run: v_get_press_release_list(10) ## End(Not run)
Get a press release text
v_get_press_release_text(no, language, fields = v_fields("Press Release Text"))
v_get_press_release_text(no, language, fields = v_fields("Press Release Text"))
no |
integer: press release number |
language |
string: (currently ignored) |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetPressReleaseText.html
## Not run: v_get_press_release_text(28639) ## End(Not run)
## Not run: v_get_press_release_text(28639) ## End(Not run)
Get a list of referees
v_get_referee_list(fields = v_fields("Referee"), version, filter)
v_get_referee_list(fields = v_fields("Referee"), version, filter)
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#Beach%20Live_xsd~e-BeachLive~e-Referee.html
## Not run: v_get_referee_list() ## End(Not run)
## Not run: v_get_referee_list() ## End(Not run)
Get a volleyball match
v_get_volley_match(no, fields)
v_get_volley_match(no, fields)
no |
integer: match number |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetVolleyMatch.html
## Not run: v_get_volley_match(7604) ## End(Not run)
## Not run: v_get_volley_match(7604) ## End(Not run)
Get a list of volleyball matches
v_get_volley_match_list(fields = v_fields("Volleyball Match"), version, filter)
v_get_volley_match_list(fields = v_fields("Volleyball Match"), version, filter)
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetVolleyMatchList.html
## Not run: v_get_volley_match_list() ## End(Not run)
## Not run: v_get_volley_match_list() ## End(Not run)
Get a registration of a player in a volleyball tournament
v_get_volley_player(no, fields)
v_get_volley_player(no, fields)
no |
integer: the number of the player registration |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetVolleyPlayer.html
## Not run: v_get_volley_player(2508) ## End(Not run)
## Not run: v_get_volley_player(2508) ## End(Not run)
Get a list of registration of players in volleyball tournaments
v_get_volley_player_list( fields = c(v_fields("Volleyball Player"), "FirstName", "LastName"), version, filter )
v_get_volley_player_list( fields = c(v_fields("Volleyball Player"), "FirstName", "LastName"), version, filter )
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetVolleyPlayerList.html
## Not run: v_get_volley_player_list() ## End(Not run)
## Not run: v_get_volley_player_list() ## End(Not run)
Get a volleyball tournament
v_get_volley_tournament(no, fields)
v_get_volley_tournament(no, fields)
no |
integer: the tournament number ("No" as returned by |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetVolleyTournament.html
## Not run: v_get_volley_tournament(1) ## End(Not run)
## Not run: v_get_volley_tournament(1) ## End(Not run)
Get a list of volleyball tournaments
v_get_volley_tournament_list( fields = v_fields("Volleyball Tournament"), version, filter )
v_get_volley_tournament_list( fields = v_fields("Volleyball Tournament"), version, filter )
fields |
character: fields to return |
version |
integer: version of local list (currently ignored) |
filter |
list: (currently ignored) |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetVolleyTournamentList.html
## Not run: v_get_volley_tournament_list() ## End(Not run)
## Not run: v_get_volley_tournament_list() ## End(Not run)
Get the ranking of a volleyball tournament
v_get_volley_tournament_ranking( notournament, fields = v_fields("Volleyball Tournament Ranking") )
v_get_volley_tournament_ranking( notournament, fields = v_fields("Volleyball Tournament Ranking") )
notournament |
integer: the tournament number ("No" as returned by |
fields |
character: fields to return |
A data.frame
https://www.fivb.org/VisSDK/VisWebService/#GetVolleyTournamentRanking.html
## Not run: v_get_volley_tournament_ranking(1032) ## End(Not run)
## Not run: v_get_volley_tournament_ranking(1032) ## End(Not run)
Set or get fivbvis options
v_options(huge_xml = FALSE, verbose = FALSE)
v_options(huge_xml = FALSE, verbose = FALSE)
huge_xml |
logical: if |
verbose |
logical: if |
The current options (invisibly unless at least one parameter has been provided)