Version: 0.1.0
Title: An R API Wrapper for the Monash University Probabilistic Footy Tipping Competition
Description: An API wrapper for the 'Monash University Probabilistic Footy Tipping Competition' https://probabilistic-footy.monash.edu/~footy/index.shtml. Allows users to submit tips directly to the competition from R.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.1.1
URL: https://jimmyday12.github.io/monash_tipr/, https://github.com/jimmyday12/monash_tipr
Imports: rvest, httr, magrittr, rlang, xml2, glue, lifecycle, purrr
Suggests: testthat, covr
RdMacros: lifecycle
Language: en-GB
Config/testthat/edition: 3
Config/testthat/parallel: true
NeedsCompilation: no
Packaged: 2022-03-18 05:42:48 UTC; jamesday
Author: James Day ORCID iD [aut, cre, cph]
Maintainer: James Day <jamesthomasday@gmail.com>
Repository: CRAN
Date/Publication: 2022-03-21 08:20:02 UTC

monashtipr: An R API Wrapper for the Monash University Probabilistic Footy Tipping Competition

Description

An API wrapper for the 'Monash University Probabilistic Footy Tipping Competition' <https://probabilistic-footy.monash.edu/~footy/index.shtml>. Allows users to submit tips directly to the competition from R.

Author(s)

Maintainer: James Day jamesthomasday@gmail.com (ORCID) [copyright holder]

See Also

Useful links:


Pipe operator

Description

See magrittr::%>% for details.

Usage

lhs %>% rhs

Get Games

Description

get_current_games provides an API to return the current rounds matches in a data frame.

Usage

get_games(user, pass, comp, round = NULL)

Arguments

user

monash username, in text

pass

monash password, in text

comp

comp type, should be one of "normal", "gauss" or "info"

round

(optional), round number to return. If not provided, will try find the current round.

Value

A tibble, containing the matches from the currently available tipping round

Examples

## Not run: 
get_games(user, pass, comp)

## End(Not run)

Submit Tips

Description

Submit Tips

Usage

submit_tips(games, user, pass, comp, round = NULL)

Arguments

games

a table of games, ideally returned from get_games

user

monash username, in text

pass

monash password, in text

comp

comp type, should be one of "normal", "gauss" or "info"

round

(optional), round number to return. If not provided, will try find the current round.

Value

A tibble, containing the games and tips submitted via the API with a status column

Examples

## Not run: 
submit_tips(games, user, pass, comp)

## End(Not run)