Skip to content

Commit

Permalink
clean up internal namespace and directly re-export load_pbp, load_pla…
Browse files Browse the repository at this point in the history
…yer_stats
  • Loading branch information
tanho63 committed Jan 20, 2025
1 parent 7d53e07 commit c525c8d
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 166 deletions.
32 changes: 2 additions & 30 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -24,45 +24,17 @@ export(nflverse_sitrep)
export(report)
export(save_raw_pbp)
export(update_db)
import(dplyr)
import(fastrmodels)
importFrom(cli,rule)
importFrom(curl,curl_fetch_memory)
importFrom(data.table,"%between%")
importFrom(data.table,"%chin%")
importFrom(data.table,setDT)
importFrom(furrr,future_map)
importFrom(furrr,future_map_chr)
importFrom(furrr,future_map_dfr)
importFrom(future,plan)
importFrom(glue,glue)
importFrom(glue,glue_sql)
importFrom(janitor,clean_names)
importFrom(lifecycle,deprecated)
importFrom(mgcv,predict.bam)
importFrom(nflreadr,load_pbp)
importFrom(nflreadr,load_player_stats)
importFrom(nflreadr,nflverse_sitrep)
importFrom(progressr,progressor)
importFrom(rlang,":=")
importFrom(rlang,.data)
importFrom(rlang,.env)
importFrom(rlang,dots_list)
importFrom(rlang,inform)
importFrom(stats,na.omit)
importFrom(stats,predict)
importFrom(stringr,str_detect)
importFrom(stringr,str_extract)
importFrom(stringr,str_extract_all)
importFrom(stringr,str_length)
importFrom(stringr,str_remove_all)
importFrom(stringr,str_replace_all)
importFrom(stringr,str_split)
importFrom(stringr,str_sub)
importFrom(stringr,str_trim)
importFrom(tibble,as_tibble)
importFrom(tibble,tibble)
importFrom(tidyr,unnest)
importFrom(tidyr,unnest_wider)
importFrom(tidyselect,any_of)
importFrom(tidyselect,ends_with)
importFrom(utils,packageVersion)
importFrom(xgboost,getinfo)
12 changes: 0 additions & 12 deletions R/load_pbp.R

This file was deleted.

30 changes: 0 additions & 30 deletions R/load_player_stats.R

This file was deleted.

37 changes: 21 additions & 16 deletions R/nflfastR-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,25 +103,30 @@
# The following block is used by usethis to automatically manage
# roxygen namespace tags. Modify with care!
## usethis namespace: start
#' @import dplyr
#' @import fastrmodels
#' @importFrom cli rule
#' @importFrom curl curl_fetch_memory
#' @importFrom nflreadr load_pbp load_player_stats
#' @export load_pbp
#' @export load_player_stats
#' @importFrom magrittr %>%
#' @importFrom data.table setDT %between% %chin%
#' @importFrom furrr future_map_chr future_map_dfr future_map
#' @importFrom future plan
#' @importFrom glue glue glue_sql
#' @importFrom janitor clean_names
#' @importFrom lifecycle deprecated
#' @importFrom mgcv predict.bam
#' @importFrom progressr progressor
#' @importFrom rlang .data inform dots_list := .env
#' @importFrom rlang .data inform dots_list := .env %||%
#' @importFrom stats predict na.omit
#' @importFrom stringr str_sub str_replace_all str_length str_extract str_detect str_trim str_remove_all str_split str_extract_all
#' @importFrom tibble as_tibble tibble
#' @importFrom tidyr unnest_wider unnest
#' @importFrom tidyselect any_of ends_with
#' @importFrom utils packageVersion
#' @importFrom xgboost getinfo
## usethis namespace: end
NULL

# @import dplyr
# @importFrom cli rule
# @importFrom curl curl_fetch_memory
# @importFrom furrr future_map_chr future_map_dfr future_map
# @importFrom future plan
# @importFrom glue glue glue_sql
# @importFrom janitor clean_names
# @importFrom lifecycle deprecated
# @importFrom mgcv predict.bam
# @importFrom progressr progressor
# @importFrom stringr str_sub str_replace_all str_length str_extract str_detect str_trim str_remove_all str_split str_extract_all
# @importFrom tibble as_tibble tibble
# @importFrom tidyr unnest_wider unnest
# @importFrom tidyselect any_of ends_with
# @importFrom xgboost getinfo
7 changes: 6 additions & 1 deletion man/calculate_stats.Rd

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

41 changes: 0 additions & 41 deletions man/load_pbp.Rd

This file was deleted.

36 changes: 0 additions & 36 deletions man/load_player_stats.Rd

This file was deleted.

0 comments on commit c525c8d

Please sign in to comment.