Skip to content

Commit

Permalink
update documentation for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
saiemgilani committed Nov 28, 2023
1 parent 1ffc8a8 commit 92b96f4
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 36 deletions.
3 changes: 0 additions & 3 deletions CRAN-SUBMISSION

This file was deleted.

18 changes: 10 additions & 8 deletions R/load_mbb.R
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,12 @@ load_mbb_games <- function() {
return(dat)
}

#' **Update or create a hoopR MBB play-by-play database**
#' @name update_mbb_db
#' @aliases update_mbb_db mbb_db mbb mbb_pbp_db
NULL
#' @title
#' **Update or create a hoopR play-by-play database**
#' **Update or create a hoopR MBB play-by-play database**
#' @rdname update_mbb_db
#' @description `update_mbb_db()` updates or creates a database with `hoopR`
#' play by play data of all completed and available games since 2006.
#'
Expand All @@ -475,15 +477,15 @@ load_mbb_games <- function() {
#' by play data table either for the whole hoopR era (with `force_rebuild = TRUE`)
#' or just for specified seasons (e.g. `force_rebuild = c(2019, 2020)`).
#' Please note the following behavior:
#' \itemize{
#' \item{`force_rebuild = TRUE`}{: The data table with the name `tblname`
#'
#' - `force_rebuild = TRUE`: The data table with the name `tblname`
#' will be removed completely and rebuilt from scratch. This is helpful when
#' new columns are added during the Off-Season.}
#' \item{`force_rebuild = c(2019, 2020)`}{: The data table with the name `tblname`
#' new columns are added during the Off-Season.
#' - `force_rebuild = c(2019, 2020)`: The data table with the name `tblname`
#' will be preserved and only rows from the 2019 and 2020 seasons will be
#' deleted and re-added. This is intended to be used for ongoing seasons because
#' ESPN's data provider can make changes to the underlying data during the week.}
#' }
#' ESPN's data provider can make changes to the underlying data during the week.
#'
#'
#' The parameter `db_connection` is intended for advanced users who want
#' to use other DBI drivers, such as MariaDB, Postgres or odbc. Please note that
Expand Down
18 changes: 10 additions & 8 deletions R/load_nba.R
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,12 @@ load_nba_games <- function(){
return(dat)
}

#' **Update or create a hoopR NBA play-by-play database**
#' @name update_nba_db
#' @aliases update_nba_db nba_db nba nba_pbp_db
NULL
#' @title
#' **Update or create a hoopR play-by-play database**
#' **Update or create a hoopR NBA play-by-play database**
#' @rdname update_nba_db
#' @description `update_nba_db()` updates or creates a database with `hoopR`
#' play by play data of all completed and available games since 2002.
#'
Expand All @@ -485,15 +487,15 @@ load_nba_games <- function(){
#' by play data table either for the whole hoopR era (with `force_rebuild = TRUE`)
#' or just for specified seasons (e.g. `force_rebuild = c(2019, 2020)`).
#' Please note the following behavior:
#' \itemize{
#' \item{`force_rebuild = TRUE`}{: The data table with the name `tblname`
#'
#' - `force_rebuild = TRUE`: The data table with the name `tblname`
#' will be removed completely and rebuilt from scratch. This is helpful when
#' new columns are added during the Off-Season.}
#' \item{`force_rebuild = c(2019, 2020)`}{: The data table with the name `tblname`
#' new columns are added during the Off-Season.
#' - `force_rebuild = c(2019, 2020)`: The data table with the name `tblname`
#' will be preserved and only rows from the 2019 and 2020 seasons will be
#' deleted and re-added. This is intended to be used for ongoing seasons because
#' ESPN's data provider can make changes to the underlying data during the week.}
#' }
#' ESPN's data provider can make changes to the underlying data during the week.
#'
#'
#' The parameter `db_connection` is intended for advanced users who want
#' to use other DBI drivers, such as MariaDB, Postgres or odbc. Please note that
Expand Down
2 changes: 1 addition & 1 deletion man/kp_team_players.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions man/update_mbb_db.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions man/update_nba_db.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92b96f4

Please sign in to comment.