13 Comments
User's avatar
Kacper's avatar

Hey, im stuck on devtools::install_github("statsbomb"/"statsbombR")

Console says that "there's error in devtools::install_github("statsbomb"/"statsbombR")

non-numeric argument to binary operator

do you have any hint?

Expand full comment
BiscuitchaserFC's avatar

Hey! Give this a go: devtools::install_github("statsbomb/StatsBombR")

Think in the initial post there wasa rogue lower case 'b' - the above should work! Let me know if not

Expand full comment
Vishvaraj Chauhan's avatar

I have the same error as Kacper. Your new code is the same as mentioned on GitHub but it isn't loading.

Expand full comment
BiscuitchaserFC's avatar

Hey! What error do you get when running: devtools::install_github("statsbomb/StatsBombR") ?

Expand full comment
Vishvaraj Chauhan's avatar

The following:

Error: Failed to install 'StatsBombR' from GitHub:

Command failed (1)

In addition: Warning message:

In system(full, intern = TRUE, ignore.stderr = quiet) :

running command ''/usr/bin/git' ls-remote https://github.com/cran/SDMTools.git 2>/dev/null' had status 1

Expand full comment
kuri_pablo's avatar

SDMTools is no longer in CRAN. To install run: devtools::install_github("jjvanderwal/SDMTools")

Expand full comment
Paul's avatar

Hi, I am struggling with the MatchesDF = Matches, Parallel =T line of code. It just returns an error each time. StatsBombData <- StatsBombFreeEvents(MatchesDF = Matches, Parallel = T)

Error in if (MatchesDF == "ALL") { : the condition has length > 1

Any ideas how I can get past this?

Expand full comment
Fauzi's avatar

Hi, I am stuck on

create_Pitch()+

geom_point(data=d1,aes(x=location.x, y=location.y))

The console says that 'Error in FUN(X[[i]], ...) : object 'location.x' not found'

Could you help with this?

Expand full comment
Surya's avatar

I'm also facing similar error related to SDMTools.

"ERROR: compilation failed for package 'SDMTools'"

Anyone found a way to resolve it? Thanks.

Expand full comment
John's avatar

Hi There, getting an error when trying to install as well

Error: Failed to install 'StatsBombR' from GitHub:

Failed to install 'unknown package' from Git:

(converted from warning) installation of package ‘C:/Users/johnl/AppData/Local/Temp/RtmpQ9y14c/file23a82a602ecf/SDMTools_1.1-221.2.tar.gz’ had non-zero exit status

I have followed the steps up to this point in your blog, the pitch seems to load OK?

Expand full comment
John's avatar

Weird, it seemed to work the 5th time I tried it!

Expand full comment
Kacper's avatar

Hey, im stuck on devtools::install_github("statsbomb"/"statsbombR")

Console says that "there's error in devtools::install_github("statsbomb"/"statsbombR")

non-numeric argument to binary operator

do you have any hint?

Expand full comment
Vishvaraj Chauhan's avatar

I have the same error. Did you resolve it?

Expand full comment