Skip to content

Commit

Permalink
Add internal data updates (#36)
Browse files Browse the repository at this point in the history
* add try catch
* update readme links, kp tryCatch, docs, urls in description
* update teams links rda
  • Loading branch information
saiemgilani authored Oct 26, 2021
1 parent 3e138e1 commit 386c23d
Show file tree
Hide file tree
Showing 106 changed files with 6,473 additions and 4,614 deletions.
20 changes: 20 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,23 @@ mbb_pbp_db
^docs/*
docs/*
data-raw/*
mbb_pbp_db
nba_pbp_db
^docs/CNAME
^docs/.gitignore
^docs/babel.config.js
^docs/
^docs/blog$
^docs/docs$
^docs/build$
^docs/[.].*$
^docs/[.].*/[.].*$
^docs/static/[.].*$
^docs/blog/[.].*$
^docs/docs/[.].*$
^docs/node_modules/[.].*$
^docs/src/[.].*$
^docs/build/MBB/[.].*$
^docs/docs/MBB/[.].*$
^docs/docs/NBA/[.].*$
^docs/[\.]\.*$
12 changes: 6 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: hoopR
Title: Functions to Access Men's Basketball Play by Play Data
Version: 1.4.0
Version: 1.4.1
Authors@R:
c(person(given = "Saiem",
family = "Gilani",
Expand All @@ -15,12 +15,12 @@ Description: An R package to quickly obtain clean and tidy men's
active subscription to kenpom.com the capability to scrape the website tables and
analyze the data for themselves.
License: MIT + file LICENSE
URL: https://saiemgilani.github.io/hoopR,
https://www.github.com/saiemgilani/hoopR
BugReports: https://www.github.com/saiemgilani/hoopR/issues
URL: https://saiemgilani.github.io/hoopR/,
https://github.com/saiemgilani/hoopR
BugReports: https://github.com/saiemgilani/hoopR/issues
SystemRequirements: pandoc (>= 1.12.3), pandoc-citeproc
Depends:
R (>= 3.5.0)
R (>= 4.0.0)
Imports:
cli (>= 1.1.0),
data.table (>= 1.14.0),
Expand All @@ -47,7 +47,7 @@ Suggests:
ggrepel,
httr (>= 0.5),
purrr (>= 0.3.0),
qs (>= 0.24.0),
qs (>= 0.25.1),
rmarkdown,
RSQLite,
stats,
Expand Down
5 changes: 4 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ export(nba_commonallplayers)
export(nba_commonplayerinfo)
export(nba_commonplayoffseries)
export(nba_commonteamroster)
export(nba_commonteamyears)
export(nba_cumestatsplayer)
export(nba_cumestatsplayergames)
export(nba_cumestatsteam)
export(nba_cumestatsteamgames)
export(nba_data_pbp)
export(nba_defensehub)
export(nba_draftboard)
export(nba_draftcombinedrillresults)
Expand Down Expand Up @@ -195,8 +195,10 @@ export(nba_videostatus)
export(nba_winprobabilitypbp)
export(ncaa_mbb_NET_rankings)
export(progressively)
export(rejoin_schedules)
export(update_mbb_db)
export(update_nba_db)
export(year_to_season)
import(furrr)
import(rvest)
import(stringr)
Expand All @@ -217,6 +219,7 @@ importFrom(dplyr,bind_rows)
importFrom(dplyr,case_when)
importFrom(dplyr,filter)
importFrom(dplyr,group_by)
importFrom(dplyr,left_join)
importFrom(dplyr,mutate)
importFrom(dplyr,mutate_at)
importFrom(dplyr,rename)
Expand Down
257 changes: 130 additions & 127 deletions NEWS.md

Large diffs are not rendered by default.

20 changes: 18 additions & 2 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' Teams Dictionary
#' Team link reference lookup for the package
#' Men's College Basketball KenPom Teams Dictionary
#' Team link KenPom reference lookup for the package
#' @format A data frame with 357 rows and 6 variables:\
#' \describe{
#' \item{\code{Team}}{character.}
Expand All @@ -11,3 +11,19 @@
#' \item{\code{conf.link.ref}}{character.}
#' }
"teams_links"

#' NBA Stats API's Teams Dictionary
#' @format A data frame with 30 rows and 10 variables:\
#' \describe{
#' \item{\code{TeamID}}{character.}
#' \item{\code{TeamCity}}{character.}
#' \item{\code{TeamName}}{character.}
#' \item{\code{TeamSlug}}{double.}
#' \item{\code{Conference}}{character.}
#' \item{\code{Division}}{character.}
#' \item{\code{LeagueID}}{character.}
#' \item{\code{SeasonID}}{character.}
#' \item{\code{SEASON}}{character.}
#' \item{\code{TEAMNAMEFULL}}{character.}
#' }
"nba_teams"
Loading

1 comment on commit 386c23d

@vercel
Copy link

@vercel vercel bot commented on 386c23d Oct 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.