Closed efbbrown closed 9 years ago
Your example works for me when using the most recent GitHub version of pitchRx. Could you retry after doing:
devtools::install_github("cpsievert/pitchRx")
Hi! I have the following code:
devtools::install_github("cpsievert/pitchRx")
Load required packages
library('DBI') library('dplyr') library('ggplot2') library('pitchRx')
Create new database
db <- src_sqlite("pitchRx.sqlite3", create = TRUE)
Make sure your database was created and is empty.
db
Set up a scrape that will write to the newdb
scrape(start = "2016-04-01", end = as.character(Sys.Date() - 1), connect = db$con)
Download additional data and join
files <- c("inning/inning_hit.xml", "miniscoreboard.xml", "players.xml") scrape(start = "2016-04-01", end = as.character(Sys.Date() - 1), suffix = files, connect = db$con)]
And I'm getting the same issue:
Error in names(value) <- sub(".", "_", names(value)) : attempt to set an attribute on NULL
The output of
devtools::session_info()
is
Session info ------------------------------------------------------------------- Packages ----------------------------------------------------------------------- setting value
version R version 3.2.3 (2015-12-10) system x86_64, linux-gnu
ui X11
language (EN)
collate en_US.UTF-8
tz
date 2016-06-28package * version date source
assertthat 0.1 2013-12-06 CRAN (R 3.2.3)
bitops 1.0-6 2013-08-17 CRAN (R 3.2.3)
colorspace 1.2-6 2015-03-11 CRAN (R 3.2.3)
curl 0.9.7 2016-04-10 CRAN (R 3.2.3)
DBI * 0.4-1 2016-05-08 CRAN (R 3.2.3)
devtools 1.11.1 2016-04-21 CRAN (R 3.2.3)
digest 0.6.9 2016-01-08 CRAN (R 3.2.3)
dplyr * 0.4.3 2015-09-01 CRAN (R 3.2.3)
ggplot2 * 2.1.0 2016-03-01 CRAN (R 3.2.3)
git2r 0.15.0 2016-05-11 CRAN (R 3.2.3)
gtable 0.2.0 2016-02-26 CRAN (R 3.2.3)
hexbin 1.27.1 2015-08-19 CRAN (R 3.2.3)
httr 1.1.0 2016-01-28 CRAN (R 3.2.3)
hwriter * 1.3.2 2014-09-10 CRAN (R 3.2.3)
hwriterPlus * 1.0-3 2015-01-05 CRAN (R 3.2.3)
lattice 0.20-33 2015-07-14 CRAN (R 3.2.3)
magrittr 1.5 2014-11-22 CRAN (R 3.2.3)
MASS 7.3-45 2016-04-21 CRAN (R 3.2.3)
Matrix 1.2-6 2016-05-02 CRAN (R 3.2.3)
memoise 1.0.0 2016-01-29 CRAN (R 3.2.3)
mgcv 1.8-7 2015-07-23 CRAN (R 3.2.1)
munsell 0.4.3 2016-02-13 CRAN (R 3.2.3)
nlme 3.1-124 2016-01-20 CRAN (R 3.2.3)
pitchRx * 1.8.3 2016-06-28 Github (cpsievert/pitchRx@7349b23) plyr 1.8.4 2016-06-08 CRAN (R 3.2.3)
R6 2.1.2 2016-01-26 CRAN (R 3.2.3)
Rcpp 0.12.5 2016-05-14 CRAN (R 3.2.3)
RCurl 1.95-4.8 2016-03-01 CRAN (R 3.2.3)
RODBC * 1.3-12 2015-06-29 CRAN (R 3.2.1)
Rserve * 1.7-3 2013-08-21 CRAN (R 3.0.2)
RSQLite 1.0.0 2014-10-25 CRAN (R 3.2.3)
scales 0.4.0 2016-02-26 CRAN (R 3.2.3)
SparkR * 1.6.1 2016-06-22 local
TeachingDemos 2.10 2016-02-12 CRAN (R 3.2.3)
withr 1.0.1 2016-02-04 CRAN (R 3.2.3)
XML 3.98-1.4 2016-03-01 CRAN (R 3.2.3)
XML2R 0.0.6 2014-03-10 CRAN (R 3.2.3)
I'm currently receiving this error when using scrape().
This same error occurs if I use a MySQL() database instead of the sqllite one.
Here is some session info
Thanks again Carson, love the package.