Skip to content

Commit

Permalink
Make sure the fake schedule is a tibble
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Jan 19, 2024
1 parent 51641bf commit bd262d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: nflseedR
Title: Functions to Efficiently Simulate and Evaluate NFL Seasons
Version: 1.2.0
Version: 1.2.0.9000
Authors@R: c(
person("Lee", "Sharpe", role = c("aut", "cph")),
person("Sebastian", "Carl", , "[email protected]", role = c("cre", "aut"))
Expand Down
2 changes: 1 addition & 1 deletion R/simulate_nfl.R
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ simulate_nfl <- function(nfl_season = NULL,
".csv?raw=true"
)
tryCatch({
schedule <- data.table::fread(fn)
schedule <- data.table::fread(fn) %>% tibble::as_tibble()
cli::cli_alert_info("No actual schedule exists for {.val {nfl_season}}, using fake schedule with correct opponents.")
}, error = function(cond) {
cli::cli_abort("Unable to locate a schedule for {.val {nfl_season}}")
Expand Down

0 comments on commit bd262d5

Please sign in to comment.