Git Product home page Git Product logo

Comments (5)

nickbloom avatar nickbloom commented on August 20, 2024

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

from rvest.

hadley avatar hadley commented on August 20, 2024

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

from rvest.

nickbloom avatar nickbloom commented on August 20, 2024

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 

from rvest.

renkun-ken avatar renkun-ken commented on August 20, 2024

The example works for me too.

from rvest.

nickbloom avatar nickbloom commented on August 20, 2024

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

from rvest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.