Re: [R] access to webpage code

2008-01-13 Thread Prof Brian Ripley
See ?download.file ?url Omegahat package RCurl You do realize that the 'code of web page' is just what you download? E.g. (working example) readLines(url("http://www.r-project.org";)) On Sun, 13 Jan 2008, John Lande wrote: > dear R user, > > I need a function that download the code of web pa

Re: [R] access to webpage code

2008-01-13 Thread Henrique Dallazuanna
Try this: code <- readLines(site) On 13/01/2008, John Lande <[EMAIL PROTECTED]> wrote: > dear R user, > > I need a function that download the code of web page as html, to further > parse it. > > something like > > >site="http://www.R-project.com"; > >code=function(site) > >code > > !DOCTYPE HTML

[R] access to webpage code

2008-01-13 Thread John Lande
dear R user, I need a function that download the code of web page as html, to further parse it. something like >site="http://www.R-project.com"; >code=function(site) >code !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> The R Project for Statistical Computing The R