Open seyong opened 8 years ago
@cpsievert @seyong I don't know if this will help you or not, but I was having the same error whenever I tried to use the scrape function. I went through and tried it loading different combinations of packages. Whenever I loaded the data.table package I got the same error you are. It doesn't look like you have data.table loaded, but it might be something similar where one or more of the packages are causing an issue somehow.
@ctloftin Tnx for reply. I recollected the data day-by-day and it worked. At some point - I guess it is All-star breaks - the scrape function with long range tried to collect the dummy game which have no data. I found the dummy data( for example, mex vs can) around All-star breaks. But still I don't have no idea about the second error "Error in names(value) <- sub(".", "_", names(value)) :"
I collected the data using 'scrape' function. The range was 2013-01-01 ~ 2013-12-31 When I first tried the source code, it successfully collected the data, but in some point, the data was mingled (e.g. gameday_link is saved in count, and count is saved in gamedaylink). I found the problem today, and tried to re-collected the data but faced with the error Error in names(value) <- sub(".", "", names(value)) : attempt to set an attribute on NULL
I attached my sesssion_info below:
Packages ----------------------------------------------------------------------------------------------------------------------------------- package * version date source
assertthat 0.1 2013-12-06 CRAN (R 3.2.1)
bitops * 1.0-6 2013-08-17 CRAN (R 3.2.1)
colorspace 1.2-6 2015-03-11 CRAN (R 3.2.1)
curl 0.9.4 2015-11-20 CRAN (R 3.2.1)
DBI * 0.3.1 2014-09-24 CRAN (R 3.2.1)
devtools * 1.9.1 2015-09-11 CRAN (R 3.2.1)
digest 0.6.8 2014-12-31 CRAN (R 3.2.1)
dplyr * 0.4.3 2015-09-01 CRAN (R 3.2.1)
ggplot2 * 2.0.0 2015-12-18 CRAN (R 3.2.1)
gtable 0.1.2 2012-12-05 CRAN (R 3.2.1)
hexbin 1.27.1 2015-08-19 CRAN (R 3.2.1)
httr * 1.0.0 2015-06-25 CRAN (R 3.2.1)
lattice 0.20-31 2015-03-30 CRAN (R 3.2.1)
lazyeval 0.1.10 2015-01-02 CRAN (R 3.2.1)
magrittr 1.5 2014-11-22 CRAN (R 3.2.1)
MASS 7.3-40 2015-03-21 CRAN (R 3.2.1)
Matrix 1.2-1 2015-06-01 CRAN (R 3.2.1)
memoise 0.2.1 2014-04-22 CRAN (R 3.2.1)
mgcv 1.8-6 2015-03-31 CRAN (R 3.2.1)
munsell 0.4.2 2013-07-11 CRAN (R 3.2.1)
nlme 3.1-120 2015-02-20 CRAN (R 3.2.1)
pitchRx * 1.8.2 2015-12-19 Github (cpsievert/pitchRx@645b6a9) plyr 1.8.3 2015-06-12 CRAN (R 3.2.1)
proto 0.3-10 2012-12-22 CRAN (R 3.2.1)
R6 2.1.1 2015-08-19 CRAN (R 3.2.1)
Rcpp 0.12.2 2015-11-15 CRAN (R 3.2.1)
RCurl * 1.95-4.7 2015-06-30 CRAN (R 3.2.1)
reshape2 1.4.1 2014-12-06 CRAN (R 3.2.1)
RSQLite * 1.0.0 2014-10-25 CRAN (R 3.2.1)
scales 0.3.0 2015-08-25 CRAN (R 3.2.1)
stringi 1.0-1 2015-10-22 CRAN (R 3.2.1)
stringr 1.0.0 2015-04-30 CRAN (R 3.2.1)
XML * 3.98-1.3 2015-06-30 CRAN (R 3.2.1)
XML2R * 0.0.6 2014-03-10 CRAN (R 3.2.1)