Movatterモバイル変換


[0]ホーム

URL:


oddsapiR

Version-NumberR-CMD-checkLifecycle:maturingContributorsTwitter Follow

To access the API, get a free API key fromhttps://the-odds-api.com

Installation & Usage

Installation

You can install the released version ofoddsapiRfromGitHubwith:

# You can install using the pacman package using the following code:if (!requireNamespace('pacman',quietly =TRUE)){install.packages('pacman')}pacman::p_load_current_gh("sportsdataverse/oddsapiR")
# if you would prefer devtools installationif (!requireNamespace('devtools',quietly =TRUE)){install.packages('devtools')}# Alternatively, using the devtools package:devtools::install_github(repo ="sportsdataverse/oddsapiR")
git clone https://github.com/sportsdataverse/oddsapicd oddsapiRscript-e"devtools::install()"

Odds API Keys

TheOdds API requires an APIkey, here’s a quick run-down:

ODDS_API_KEY= XXXX-YOUR-API-KEY-HERE-XXXXX

Save the script andrestart your RStudio session, byclickingSession (in betweenPlots andBuild) and clickRestart R (there also existsthe shortcutCtrl + Shift + F10 to restart your session).If set correctly, from then on you should be able to use any of thefunctions without any other changes.

Sys.setenv(ODDS_API_KEY ="XXXX-YOUR-API-KEY-HERE-XXXXX")

Documentation

For more information on the package and function reference, pleasesee theoddsapiRdocumentation website.

Breaking Changes

FullNews on Releases

FollowtheSportsDataverse onTwitter and star this repo

Twitter Follow

GitHub stars

Our Authors

Citations

To cite theoddsapiRR package in publications, use:

BibTex Citation

@misc{gilani_2022_oddsapiR,author = {Gilani, Saiem},title = {oddsapiR: The SportsDataverse's R Package for The Odds API.},url = {https://oddsapiR.sportsdataverse.org},year = {2022}}

[8]ページ先頭

©2009-2025 Movatter.jp