Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Access sports odds from the Odds API

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

sportsdataverse/oddsapiR

Repository files navigation

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 ofoddsapiR fromGitHub with:

# 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")
gitclonehttps://github.com/sportsdataverse/oddsapicdoddsapiRscript-e"devtools::install()"

Odds API Keys

TheOdds API requires an API key, here’s aquick run-down:

  • Using the key: You can save the key for consistent usage by addingODDS_API_KEY=XXXX-YOUR-API-KEY-HERE-XXXXX to your .Renviron file(easily accessed viausethis::edit_r_environ()).Runusethis::edit_r_environ(),a new script will pop open named.Renviron,THEN paste thefollowing in the new script that pops up (without quotations)
ODDS_API_KEY=XXXX-YOUR-API-KEY-HERE-XXXXX

Save the script andrestart your RStudio session, by clickingSession (in betweenPlots andBuild) and clickRestart R (therealso exists the 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.

  • For less consistent usage: At the beginning of every session orwithin an R environment, save your API key as the environmentvariableODDS_API_KEY (with quotations) using a command like thefollowing.
Sys.setenv(ODDS_API_KEY="XXXX-YOUR-API-KEY-HERE-XXXXX")

Documentation

For more information on the package and function reference, please seetheoddsapiR documentationwebsite.

Breaking Changes

Full News onReleases

Follow theSportsDataverse on Twitter and star this repo

Twitter Follow

GitHub stars

Our Authors

Citations

To cite theoddsapiR Rpackage 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}}

About

Access sports odds from the Odds API

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp