Hi I am using Version R 2.15 and I haven't been able read html table. Following is my code and error message. Error in htmlParse(doc) : error in creating parser for http://en.wikipedia.org/wiki/Brazil_national_football_team theurl <- "http://en.wikipedia.org/wiki/Brazil_national_football_team" tables <- readHTMLTable(theurl) Regards, Kiung [[alternative HTML version deleted]]
HI, I am using R 2.15 in Ubuntu 12.04.? It works fine for me. library(XML) theurl <- "http://en.wikipedia.org/wiki/Brazil_national_football_team" tables <- readHTMLTable(theurl) A.K. ----- Original Message ----- From: "Lay, Kiung" <Kiung.Lay at sensis.com.au> To: "r-help at R-project.org" <r-help at r-project.org> Cc: Sent: Thursday, August 9, 2012 2:55 AM Subject: [R] read htm table error Hi I am using Version R 2.15 and I haven't been able read html table. Following is my code and error message. Error in htmlParse(doc) : ? error in creating parser for http://en.wikipedia.org/wiki/Brazil_national_football_team theurl <- "http://en.wikipedia.org/wiki/Brazil_national_football_team" tables <- readHTMLTable(theurl) Regards, Kiung ??? [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Works fine for me. sessionInfo() R version 2.15.1 (2012-06-22) Platform: i686-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=C LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] grid stats graphics grDevices utils datasets methods [8] base other attached packages: [1] XML_3.9-4 directlabels_2.6 stringr_0.6.1 RColorBrewer_1.0-5 [5] reshape2_1.2.1 scales_0.2.1 plyr_1.7.1 gridExtra_0.9 [9] ggplot2_0.9.1 loaded via a namespace (and not attached): [1] colorspace_1.1-1 dichromat_1.2-4 digest_0.5.2 labeling_0.1 [5] MASS_7.3-20 memoise_0.1 munsell_0.3 proto_0.3-9.2 [9] tools_2.15.1 1> John Kane Kingston ON Canada> -----Original Message----- > From: kiung.lay at sensis.com.au > Sent: Thu, 9 Aug 2012 06:55:17 +0000 > To: r-help at r-project.org > Subject: [R] read htm table error > > > Hi I am using Version R 2.15 and I haven't been able read html table. > Following is my code and error message. > Error in htmlParse(doc) : > error in creating parser for > http://en.wikipedia.org/wiki/Brazil_national_football_team > > theurl <- "http://en.wikipedia.org/wiki/Brazil_national_football_team" > tables <- readHTMLTable(theurl) > > Regards, > Kiung > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!