FantasyFootballAnalytics / FantasyFootballAnalyticsR

R scripts and data files for the Fantasy Football Analytics website
http://fantasyfootballanalytics.net/
447 stars 1.58k forks source link

Error in runScrape() #28

Closed markfischer24 closed 8 years ago

markfischer24 commented 8 years ago

All, I'm getting an issue when trying to run a simple scrape (below). I tried debugging but no luck (i'm also no expert). Any thoughts?

Error in setkeyv(..., physical = FALSE) : 4 arguments passed to .Internal(nchar) which requires 3

Thanks, Mark

markfischer24 commented 8 years ago

For more info, if manually going through runScrape(), i get to season, week, then error. If i go via Add in, it pops up straight away

isaactpetersen commented 8 years ago

What line of code do you run (or what settings do you use)?

On Jul 27, 2016, at 6:30 PM, markfischer24 notifications@github.com wrote:

For more info, if manually going through runScrape(), i get to season, week, then error. If i go via Add in, it pops up straight away

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

markfischer24 commented 8 years ago

No specific line, just from the add-ins dropdown. Never loads the gui cited in tutorial, just displays that error in console

isaactpetersen commented 8 years ago

Could you give us the output from sessionInfo() after loading the ffanalytics package which will show the environment and other information from R?

markfischer24 commented 8 years ago

Sure thing!

library(ffanalytics) Loading required package: shiny Loading required package: miniUI Warning messages: 1: package ‘shiny’ was built under R version 3.2.5 2: package ‘miniUI’ was built under R version 3.2.5 sessionInfo() R version 3.2.0 (2015-04-16) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] ffanalytics_0.1.6 miniUI_0.1.1 shiny_0.13.2

loaded via a namespace (and not attached): [1] Rcpp_0.12.6 RColorBrewer_1.1-2 plyr_1.8.4 bitops_1.0-6 tools_3.2.0
[6] rpart_4.1-9 digest_0.6.8 gtable_0.2.0 lattice_0.20-31 gridExtra_2.2.1
[11] httr_1.2.1 stringr_1.0.0 cluster_2.0.1 caTools_1.17.1 grid_3.2.0
[16] nnet_7.3-9 data.table_1.9.6 R6_2.0.1 tcltk_3.2.0 XML_3.98-1.4
[21] survival_2.38-1 readxl_0.1.1 RSelenium_1.3.5 foreign_0.8-63 RJSONIO_1.3-0
[26] latticeExtra_0.6-28 Formula_1.2-1 magrittr_1.5 ggplot2_2.1.0 Hmisc_3.17-4
[31] scales_0.4.0 htmltools_0.3.5 splines_3.2.0 mime_0.5 xtable_1.7-4
[36] colorspace_1.2-6 httpuv_1.3.3 stringi_1.1.1 acepack_1.3-3.3 RCurl_1.95-4.8
[41] munsell_0.4.3 chron_2.3-47

isaactpetersen commented 8 years ago

Could you download and install the most recent versions of:

1) R 2) R studio 3) The necessary packages (see the Installation section of: http://fantasyfootballanalytics.net/2016/06/ffanalytics-r-package-fantasy-football-data-analysis.html)

markfischer24 commented 8 years ago

Ah yes, that was it. I updated R studio but not R proper. I updated and everything is A ok now. Much appreciated!