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

Fatal Error in html_table() #18

Closed
nickbloom opened this issue Sep 20, 2014 · 5 comments
Closed

Fatal Error in html_table() #18

nickbloom opened this issue Sep 20, 2014 · 5 comments

Comments

@nickbloom
Copy link

The title is pretty self-explanatory.

Just downloaded the package tonight, so it's the current version of rvest, on R 3.0.3. All dependencies up-to-date, AFAIK.

The error emerges when running the "bonds" example in the RDocs, and in my attempted usage.

The error is Error in FUN(X[[1L]], ...) : unused argument (trim = TRUE).

@nickbloom
Copy link
Author

FWIW, the readHTMLTable function in XML works perfectly on the rvest-acquired table element. Not sure if that helps.

@hadley
Copy link
Member

hadley commented Sep 22, 2014

Could you please include a reproducible example and sessionInfo()? The example works for me.

@nickbloom
Copy link
Author

The "bonds" example fails for me:

bonds <- html("http://finance.yahoo.com/bonds/composite_bond_rates")
tables <- html_nodes(bonds, "table")
html_table(tables[[2]])

sessionInfo is:

R version 3.0.3 (2014-03-06)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] xtable_1.7-3    XML_3.95-0.2    rvest_0.1       dplyr_0.2       MASS_7.3-34    
 [6] Hmisc_3.14-4    Formula_1.1-2   survival_2.37-7 lattice_0.20-29 car_2.0-21     
[11] reshape2_1.4    ggplot2_1.0.0  

loaded via a namespace (and not attached):
 [1] assertthat_0.1      cluster_1.15.3      colorspace_1.2-4    digest_0.6.4       
 [5] evaluate_0.5.5      formatR_1.0         gtable_0.1.2        htmltools_0.2.6    
 [9] httr_0.5            knitr_1.6           latticeExtra_0.6-26 magrittr_1.0.1     
[13] munsell_0.4.2       nnet_7.3-8          parallel_3.0.3      plyr_1.8.1         
[17] proto_0.3-10        RColorBrewer_1.0-5  Rcpp_0.11.2         RCurl_1.95-4.3     
[21] rmarkdown_0.2.64    scales_0.2.4        selectr_0.2-2       stringr_0.6.2      
[25] tools_3.0.3 

@renkun-ken
Copy link
Contributor

The example works for me too.

@nickbloom
Copy link
Author

It appears to be an R version issue. I tried it on R3.1, and it works perfectly.

@hadley hadley closed this as completed Nov 21, 2014
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

3 participants