Re: [Rd] extracting tables from web pages?

2013-04-25 Thread Rui Barradas
Hello, The following seems to work. library(XML) url <- "http://house.gov/representatives/"; dat <- readHTMLTable(readLines(url), which=1, header=TRUE) str(dat) head(dat) Hope this helps, Rui Barradas Em 25-04-2013 21:00, Spencer Graves escreveu: Hello: What tools would you recomm

Re: [Rd] extracting tables from web pages?

2013-04-25 Thread Dirk Eddelbuettel
On 25 April 2013 at 13:00, Spencer Graves wrote: | Hello: | | |What tools would you recommend for extracting the table of | members of the US House of representatives from | "http://house.gov/representatives/"; and | "http://en.wikipedia.org/wiki/List_of_current_members_of_the_United

[Rd] extracting tables from web pages?

2013-04-25 Thread Spencer Graves
Hello: What tools would you recommend for extracting the table of members of the US House of representatives from "http://house.gov/representatives/"; and "http://en.wikipedia.org/wiki/List_of_current_members_of_the_United_States_House_of_Representatives_by_age";? I started w

Re: [Rd] "Failed to locate the 'texi2pdf' output file"

2013-04-25 Thread Dan Tenenbaum
On Fri, Apr 12, 2013 at 4:23 PM, Henrik Bengtsson wrote: > On Fri, Apr 12, 2013 at 3:53 PM, Kasper Daniel Hansen > wrote: >> Dan, >> >> This error looks _very_ similar to what I reported regarding the use of >> 'foreach' inside a windows vignette, on the bioc-devel email list. As you >> say, it

[Rd] lsfit: Error in formatting error message

2013-04-25 Thread Renaud Gaujoux
Hi, in R-3.0 I get the following error when calling lsfit with more observations than variables, which seems to come from an error in the formatting of the error message (note that this was not happening in 2.15.3): > nobs <- 5; nvar <- 6; lsfit(matrix(runif(nobs*nvar), ncol=nvar), runif(nobs), i

Re: [Rd] Error Message while Package creation

2013-04-25 Thread Crish..
Thanks Berend!! -- View this message in context: http://r.789695.n4.nabble.com/Error-Message-while-Package-creation-tp4665346p4665371.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.et

[Rd] dyn.load inside a package in R >= 3.0

2013-04-25 Thread Adrian Mejia
Hello, I am trying to port a package that was built for R 2.15 over to R 3.0. This package has an Initialize method that uses dyn.load to load a dll that was built separately, and then uses .C() to make calls on the functions in that dll. This worked fine in 2.15, however, I see that now for 3.0

Re: [Rd] Patch proposal for R style consistency (concerning deparse.c)

2013-04-25 Thread Hervé Pagès
On 04/24/2013 05:45 PM, Duncan Murdoch wrote: On 13-04-24 8:08 PM, Hervé Pagès wrote: On 04/18/2013 11:41 AM, Yihui Xie wrote: I second the change of "} else {". Me too. Note that print.function() will screw it only if you use useSource=FALSE: > print.function(foo3, useSource=FALSE)