-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean up internal namespace and directly re-export nflreadr functions #508
base: master
Are you sure you want to change the base?
Conversation
c525c8d
to
5da2401
Compare
@@ -52,6 +52,7 @@ Imports: | |||
glue, | |||
janitor, | |||
lifecycle, | |||
magrittr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to get rid of the magrittr pipe and never imported it because the pipe is reexported in dplyr and we need to watch the number of dependencies
#' @importFrom cli rule | ||
#' @importFrom curl curl_fetch_memory | ||
#' @importFrom nflreadr load_pbp load_player_stats load_schedules load_rosters nflverse_sitrep | ||
#' @importFrom magrittr %>% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import from dplyr
#' @importFrom utils packageVersion | ||
#' @importFrom xgboost getinfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nflfastR needs xgboost to apply the models but there is no actual function call to xgboost which results in a R CMD Check note. That's why I import a dummy.
#' } | ||
#' } | ||
#' @export | ||
report <- function(...) nflreadr::nflverse_sitrep(...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not happy with silently dropping the function report
completely
@@ -466,7 +466,6 @@ fast_scraper <- function(game_ids, | |||
|
|||
#' Load Team Rosters for Multiple Seasons | |||
#' @details See [`nflreadr::load_rosters`] for details. | |||
#' @inheritDotParams nflreadr::load_rosters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This produces in a check warning
General comment on this is that there are some situations where we didn't namespace the function call. In sum_playstats it's for performance reasons. In other cases probably no reason. |
No description provided.