diff --git a/R/create_gt_ovr_fantasy_standings.R b/R/create_gt_ovr_fantasy_standings.R index 986119e..1d84425 100644 --- a/R/create_gt_ovr_fantasy_standings.R +++ b/R/create_gt_ovr_fantasy_standings.R @@ -226,7 +226,9 @@ table_ovr_rb_fantasy <- function(num_players = NULL, week_min = 1 ) %>% # Clean up player names in defined player column - nuclearff::replace_player_names(player_col = "player_display_name") + nuclearff::replace_player_names(player_col = "player_display_name") %>% + # Clean up team names e.g., LA to LAR + nuclearff::replace_team_names() # Pull WR roster information and player IDs rb_data <- nuclearff::get_player_data(seasons, @@ -240,7 +242,9 @@ table_ovr_rb_fantasy <- function(num_players = NULL, pfr_id ) %>% # Clean up player names in defined player column - nuclearff::replace_player_names(player_col = "player_display_name") + nuclearff::replace_player_names(player_col = "player_display_name") %>% + # Clean up team names e.g., LA to LAR + nuclearff::replace_team_names() # Combine PBP data with roster information and IDs rb_stats <- rb_pbp_stats %>% @@ -426,7 +430,9 @@ table_ovr_wr_fantasy <- function(num_players = NULL, week_min = 1 ) %>% # Clean up player names in defined player column - nuclearff::replace_player_names(player_col = "player_display_name") + nuclearff::replace_player_names(player_col = "player_display_name") %>% + # Clean up team names e.g., LA to LAR + nuclearff::replace_team_names() # Pull WR roster information and player IDs wr_data <- nuclearff::get_player_data(seasons, diff --git a/renv.lock b/renv.lock index 6097b56..2aea197 100644 --- a/renv.lock +++ b/renv.lock @@ -40,7 +40,7 @@ }, "MASS": { "Package": "MASS", - "Version": "7.3-61", + "Version": "7.3-60.2", "Source": "Repository", "Repository": "CRAN", "Requirements": [ @@ -51,7 +51,7 @@ "stats", "utils" ], - "Hash": "0cafd6f0500e5deba33be22c46bf6055" + "Hash": "2f342c46163b0b54d7b64d1f798e2c78" }, "Matrix": { "Package": "Matrix", @@ -176,7 +176,7 @@ }, "V8": { "Package": "V8", - "Version": "5.0.1", + "Version": "6.0.0", "Source": "Repository", "Repository": "RSPM", "Requirements": [ @@ -185,13 +185,13 @@ "jsonlite", "utils" ], - "Hash": "7f3867df00a91c63089beb85b9ef0208" + "Hash": "6603bfcbc7883a5fed41fb13042a3899" }, "askpass": { "Package": "askpass", "Version": "1.2.1", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Requirements": [ "sys" ], @@ -265,7 +265,7 @@ "Package": "bitops", "Version": "1.0-9", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Hash": "d972ef991d58c19e6efa71b21f5e144b" }, "blob": { @@ -485,7 +485,7 @@ "Package": "commonmark", "Version": "1.9.2", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Hash": "14eb0596f987c71535d07c3aff814742" }, "conflicted": { @@ -527,7 +527,7 @@ "Package": "credentials", "Version": "2.0.2", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Requirements": [ "askpass", "curl", @@ -563,14 +563,14 @@ }, "data.table": { "Package": "data.table", - "Version": "1.16.0", + "Version": "1.16.2", "Source": "Repository", "Repository": "RSPM", "Requirements": [ "R", "methods" ], - "Hash": "fb24e05d4a91d8b1c7ff8e284bde834a" + "Hash": "2e00b378fc3be69c865120d9f313039a" }, "dbplyr": { "Package": "dbplyr", @@ -764,13 +764,13 @@ }, "evaluate": { "Package": "evaluate", - "Version": "1.0.0", + "Version": "1.0.1", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Requirements": [ "R" ], - "Hash": "6b567375113ceb7d9f800de4dd42218e" + "Hash": "3fd29944b231036ad67c3edb32e02201" }, "fansi": { "Package": "fansi", @@ -942,9 +942,9 @@ }, "gert": { "Package": "gert", - "Version": "2.1.2", + "Version": "2.1.4", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Requirements": [ "askpass", "credentials", @@ -953,7 +953,7 @@ "sys", "zip" ], - "Hash": "347d104ed332650b737f509a703c9c7f" + "Hash": "ae855ad6d7be20dd7b05d43d25700398" }, "gganimate": { "Package": "gganimate", @@ -1164,7 +1164,7 @@ "Package": "gt", "Version": "0.11.1", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Requirements": [ "R", "base64enc", @@ -1775,7 +1775,7 @@ }, "nlme": { "Package": "nlme", - "Version": "3.1-166", + "Version": "3.1-164", "Source": "Repository", "Repository": "CRAN", "Requirements": [ @@ -1785,7 +1785,7 @@ "stats", "utils" ], - "Hash": "ccbb8846be320b627e6aa2b4616a2ded" + "Hash": "a623a2239e642806158bc4dc3f51565d" }, "openssl": { "Package": "openssl", @@ -2216,13 +2216,13 @@ }, "renv": { "Package": "renv", - "Version": "1.0.10", + "Version": "1.0.11", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Requirements": [ "utils" ], - "Hash": "d0387d5687ec933dd7587efd4cfa2d85" + "Hash": "47623f66b4e80b3b0587bc5d7b309888" }, "reprex": { "Package": "reprex", @@ -2438,7 +2438,7 @@ }, "sf": { "Package": "sf", - "Version": "1.0-17", + "Version": "1.0-18", "Source": "Repository", "Repository": "RSPM", "Requirements": [ @@ -2457,7 +2457,7 @@ "units", "utils" ], - "Hash": "453a7d0263eae87a7831242a74fe9b60" + "Hash": "801bec14b3bae0f37eef4d187ee0bb44" }, "shiny": { "Package": "shiny", @@ -2567,7 +2567,7 @@ "Package": "sys", "Version": "3.4.3", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Hash": "de342ebfebdbf40477d0758d05426646" }, "systemfonts": { @@ -2976,19 +2976,19 @@ }, "wk": { "Package": "wk", - "Version": "0.9.3", + "Version": "0.9.4", "Source": "Repository", "Repository": "RSPM", "Requirements": [ "R" ], - "Hash": "9ca478d7cb1450b42dcb8af2ea5681cc" + "Hash": "37be35d733130f1de1ef51672cf7cdc0" }, "xfun": { "Package": "xfun", "Version": "0.48", "Source": "Repository", - "Repository": "CRAN", + "Repository": "RSPM", "Requirements": [ "R", "grDevices", diff --git a/renv/activate.R b/renv/activate.R index c19fc3e..0eb5108 100644 --- a/renv/activate.R +++ b/renv/activate.R @@ -2,7 +2,7 @@ local({ # the requested version of renv - version <- "1.0.10" + version <- "1.0.11" attr(version, "sha") <- NULL # the project directory @@ -368,8 +368,7 @@ local({ quiet = TRUE ) - if ("headers" %in% names(formals(utils::download.file))) - { + if ("headers" %in% names(formals(utils::download.file))) { headers <- renv_bootstrap_download_custom_headers(url) if (length(headers) && is.character(headers)) args$headers <- headers @@ -457,9 +456,8 @@ local({ # add custom headers if available -- note that # utils::available.packages() will pass this to download.file() - if ("headers" %in% names(formals(utils::download.file))) - { - headers <- renv_bootstrap_download_custom_headers(url) + if ("headers" %in% names(formals(utils::download.file))) { + headers <- renv_bootstrap_download_custom_headers(repos) if (length(headers) && is.character(headers)) args$headers <- headers }