Skip to content

Commit

Permalink
Fixed issues in table generation and renv
Browse files Browse the repository at this point in the history
  • Loading branch information
nolmacdonald committed Oct 19, 2024
1 parent 29fba48 commit edec3a1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 37 deletions.
12 changes: 9 additions & 3 deletions R/create_gt_ovr_fantasy_standings.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 %>%
Expand Down Expand Up @@ -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,
Expand Down
56 changes: 28 additions & 28 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"MASS": {
"Package": "MASS",
"Version": "7.3-61",
"Version": "7.3-60.2",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -51,7 +51,7 @@
"stats",
"utils"
],
"Hash": "0cafd6f0500e5deba33be22c46bf6055"
"Hash": "2f342c46163b0b54d7b64d1f798e2c78"
},
"Matrix": {
"Package": "Matrix",
Expand Down Expand Up @@ -176,7 +176,7 @@
},
"V8": {
"Package": "V8",
"Version": "5.0.1",
"Version": "6.0.0",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
Expand All @@ -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"
],
Expand Down Expand Up @@ -265,7 +265,7 @@
"Package": "bitops",
"Version": "1.0-9",
"Source": "Repository",
"Repository": "CRAN",
"Repository": "RSPM",
"Hash": "d972ef991d58c19e6efa71b21f5e144b"
},
"blob": {
Expand Down Expand Up @@ -485,7 +485,7 @@
"Package": "commonmark",
"Version": "1.9.2",
"Source": "Repository",
"Repository": "CRAN",
"Repository": "RSPM",
"Hash": "14eb0596f987c71535d07c3aff814742"
},
"conflicted": {
Expand Down Expand Up @@ -527,7 +527,7 @@
"Package": "credentials",
"Version": "2.0.2",
"Source": "Repository",
"Repository": "CRAN",
"Repository": "RSPM",
"Requirements": [
"askpass",
"curl",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -942,9 +942,9 @@
},
"gert": {
"Package": "gert",
"Version": "2.1.2",
"Version": "2.1.4",
"Source": "Repository",
"Repository": "CRAN",
"Repository": "RSPM",
"Requirements": [
"askpass",
"credentials",
Expand All @@ -953,7 +953,7 @@
"sys",
"zip"
],
"Hash": "347d104ed332650b737f509a703c9c7f"
"Hash": "ae855ad6d7be20dd7b05d43d25700398"
},
"gganimate": {
"Package": "gganimate",
Expand Down Expand Up @@ -1164,7 +1164,7 @@
"Package": "gt",
"Version": "0.11.1",
"Source": "Repository",
"Repository": "CRAN",
"Repository": "RSPM",
"Requirements": [
"R",
"base64enc",
Expand Down Expand Up @@ -1775,7 +1775,7 @@
},
"nlme": {
"Package": "nlme",
"Version": "3.1-166",
"Version": "3.1-164",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -1785,7 +1785,7 @@
"stats",
"utils"
],
"Hash": "ccbb8846be320b627e6aa2b4616a2ded"
"Hash": "a623a2239e642806158bc4dc3f51565d"
},
"openssl": {
"Package": "openssl",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -2438,7 +2438,7 @@
},
"sf": {
"Package": "sf",
"Version": "1.0-17",
"Version": "1.0-18",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
Expand All @@ -2457,7 +2457,7 @@
"units",
"utils"
],
"Hash": "453a7d0263eae87a7831242a74fe9b60"
"Hash": "801bec14b3bae0f37eef4d187ee0bb44"
},
"shiny": {
"Package": "shiny",
Expand Down Expand Up @@ -2567,7 +2567,7 @@
"Package": "sys",
"Version": "3.4.3",
"Source": "Repository",
"Repository": "CRAN",
"Repository": "RSPM",
"Hash": "de342ebfebdbf40477d0758d05426646"
},
"systemfonts": {
Expand Down Expand Up @@ -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",
Expand Down
10 changes: 4 additions & 6 deletions renv/activate.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit edec3a1

Please sign in to comment.