jflancer / bigballR

Package for working with NCAA Basketball Data
Other
61 stars 19 forks source link

Issue in get_play_by_play #37

Closed dylangrafius closed 1 year ago

dylangrafius commented 1 year ago

Below is my code: BAY_S <- get_team_schedule(542006) BAY_PBP <- get_play_by_play(BAY_S$Game_ID)

And this is the error that I keep getting for Baylor PBP data: Error in fix_call(vec_rbind(!!!dots, .names_to = .id)) : could not find function "fix_call"

Do you know what could be causing this?

evanmiyakawa commented 1 year ago

I can't replicate the issue. Do you have the latest version of the package? It's also possible some of your package dependencies might be out of date.

dylangrafius commented 1 year ago

It seems that I do. I also just entered in the fix_call function on its own and that seems to have worked. Thank you.

danmalter commented 1 year ago

@dylangrafius - How did you fix this issue? I am also having this issue and have updated all libraries. I can't find a fix_call() function anywhere


Update:

Running the below function fixed the issue.

fix_call <- function(expr, call = caller_env()) { withCallingHandlers(expr, error = function(cnd) { cnd$call <- call cnd_signal(cnd) }) }