Skip to content

Error in PlayerIterationAverages if one Team has no tagged Matches yet #92

Description

@Flosch1006

Description

When calling the function getPlayerIterationAverages() function for an iteration where at least one team does not have any taggings yet, but a match is scheduled/played, the function throws an error.

Steps to Reproduce

Run the following code:

library(impectR)

username <- ""
password <- ""
token <- getAccessToken(username, password)

getPlayerIterationAverages(iteration = 1198, token = token)

Expected Behavior

The function should return player averages for all squads that participate in this iteration.

Actual Behavior

An error is raised:

Error in `map()`:In index: 44.
Caused by error in `UseMethod()`:
! no applicable method for 'mutate' applied to an object of class "list"
Run `rlang::last_trace()` to see where the error occurred.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions