jimmyday12 / fitzRoy

A set of functions to easily access AFL data
https://jimmyday12.github.io/fitzRoy
Other
125 stars 27 forks source link

fetch_fixture_footywire() not working #209

Closed jimmyday12 closed 4 months ago

jimmyday12 commented 4 months ago

Likely due to round 0

fitzRoy::fetch_fixture_footywire()
#> Warning: There was 1 warning in `dplyr::mutate()`.
#> ℹ In argument: `Date = lubridate::ydm_hm(paste(season, .data$Date))`.
#> Caused by warning:
#> !  49 failed to parse.
#> Error in `dplyr::mutate()`:
#> ℹ In argument: `Round = calculate_round_number(.data$Round.Name) %>%
#>   as.numeric(.)`.
#> Caused by error:
#> ! `Round` must be size 219 or 1, not 207.
#> Backtrace:
#>      ▆
#>   1. ├─fitzRoy::fetch_fixture_footywire()
#>   2. │ └─... %>% dplyr::select(., !c("Round.Name"))
#>   3. ├─dplyr::select(., !c("Round.Name"))
#>   4. ├─dplyr::mutate(...)
#>   5. ├─dplyr:::mutate.data.frame(., Round = calculate_round_number(.data$Round.Name) %>% as.numeric(.))
#>   6. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
#>   7. │   ├─base::withCallingHandlers(...)
#>   8. │   └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
#>   9. │     └─mask$eval_all_mutate(quo)
#>  10. │       └─dplyr (local) eval()
#>  11. ├─dplyr:::dplyr_internal_error(...)
#>  12. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data)
#>  13. │   └─rlang:::signal_abort(cnd, .file)
#>  14. │     └─base::signalCondition(cnd)
#>  15. └─dplyr (local) `<fn>`(`<dpl:::__>`)
#>  16.   └─rlang::abort(message, class = error_class, parent = parent, call = error_call)

Created on 2024-03-08 with reprex v2.0.2