Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: parse error: premature EOF #20

Open
pshehan10 opened this issue Oct 17, 2022 · 0 comments
Open

Error: parse error: premature EOF #20

pshehan10 opened this issue Oct 17, 2022 · 0 comments

Comments

@pshehan10
Copy link

pshehan10 commented Oct 17, 2022

Hello

I am new to statsbomb and R. Believe I got the initial packages installed correctly because it worked smoothly with the free data but when I attempt to use my account to access I am getting this parse errror: Preamture EOF shown below. I have defined username & password and have removed it below for obvious reasons. Any help or direction would be greatly appreciated.

library(tidyverse)
── Attaching packages ─────────────────────────────────────────────── tidyverse 1.3.2 ──
✔ ggplot2 3.3.6 ✔ purrr 0.3.5
✔ tibble 3.1.8 ✔ dplyr 1.0.10
✔ tidyr 1.2.1 ✔ stringr 1.4.1
✔ readr 2.1.3 ✔ forcats 0.5.2
── Conflicts ────────────────────────────────────────────────── >tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
library(StatsBombR)
Loading required package: stringi
Loading required package: rvest

Attaching package: ‘rvest’

The following object is masked from ‘package:readr’:

guess_encoding

Loading required package: RCurl

Attaching package: ‘RCurl’

The following object is masked from ‘package:tidyr’:

complete

Loading required package: doParallel
Loading required package: foreach

Attaching package: ‘foreach’

The following objects are masked from ‘package:purrr’:

accumulate, when

Loading required package: iterators
Loading required package: parallel
Loading required package: httr
Loading required package: jsonlite

Attaching package: ‘jsonlite’

The following object is masked from ‘package:purrr’:

flatten

Loading required package: sp
Warning messages:
1: replacing previous import ‘foreach::when’ by ‘purrr::when’ when loading ‘StatsBombR’
2: replacing previous import ‘jsonlite::flatten’ by ‘purrr::flatten’ when loading ‘StatsBombR’
3: replacing previous import ‘foreach::accumulate’ by ‘purrr::accumulate’ when loading ‘StatsBombR’
username = ""
password = "
"
comps <- competitions(username, password)
Error: parse error: premature EOF

               (right here) ------^"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant