robjhyndman / cricketdata

International cricket data for men and women, Tests, ODIs and T20s
http://pkg.robjhyndman.com/cricketdata/
80 stars 21 forks source link

non-character argument #15

Closed tooba-jd closed 3 years ago

tooba-jd commented 3 years ago

Running fetch_cricinfo("T20", "Men", "Batting") results in the following error after installing devtools again!?(Maybe it doesn't have anything to do with devtools but this code worked for me from last year, I had to reinstall devtools and now it doesn't work)

rror in strsplit(tables[[2]][1, 1], "Page 1 of "): non-character argument Traceback:

  1. fetch_cricinfo("T20", "Men", "Batting")

  2. fetch_cricket_data(matchtype, sex, country, activity, type)

  3. strsplit(tables[[2]][1, 1], "Page 1 of ")

tooba-jd commented 3 years ago

Running fetch_cricinfo("T20", "Men", "Batting") results in the following error after installing devtools again!?(Maybe it doesn't have anything to do with devtools but this code worked for me from last year, I had to reinstall devtools and now it doesn't work)

rror in strsplit(tables[[2]][1, 1], "Page 1 of "): non-character argument Traceback:

  1. fetch_cricinfo("T20", "Men", "Batting")
  2. fetch_cricket_data(matchtype, sex, country, activity, type)
  3. strsplit(tables[[2]][1, 1], "Page 1 of ")