[R] Accessing data via url

John Kane jrkrideau at yahoo.ca
Sat Jan 8 19:44:15 CET 2011


Thanks

--- On Fri, 1/7/11, David Winsemius <dwinsemius at comcast.net> wrote:

> From: David Winsemius <dwinsemius at comcast.net>
> Subject: Re: [R] Accessing data via url
> To: "John Kane" <jrkrideau at yahoo.ca>
> Cc: "Henrique Dallazuanna" <wwwhsd at gmail.com>, r-help at r-project.org, "Dieter Menne" <dieter.menne at menne-biomed.de>
> Received: Friday, January 7, 2011, 2:08 PM
> I don't know how Henrique did it, but
> in Firefox one can go to the  
> Downloads panel and right click on the downloaded file and
> choose  
> "Copy Download link" (or something similar) and get:
> 
> https://6326258883408400442-a-1802744773732722657-s-sites.googlegroups.com/site/jrkrideau/home/general-stores/duplicates.csv?attachauth=ANoY7cpNemjCFz14tAP3IPYCsAnvo-JJbgPNnPEWN_evBHG2jEYaNFOIT6GZF4M3VuKzioPZwvX7QSvMDWfJ3pHac5JK5BHyflOGBLOo_v44C0oU2V6teTwnjeg4TFufeltT-i5T3ThkuyesCztr6g2yLl65YcckwlEGEDtS-L9yzVe1B6tFEu2n6sjAOV9EHokEFx8e-HDFyf-u5mVIGMPgCHvaQL8pupVz-1p1rEdPpS0f6pqApTc%3D&attredirects=0
> 
> -- 
> David.
> 
> On Jan 7, 2011, at 1:35 PM, John Kane wrote:
> 
> > Great, but how did you do that?
> >
> > --- On Fri, 1/7/11, Henrique Dallazuanna <wwwhsd at gmail.com>
> wrote:
> >
> > From: Henrique Dallazuanna <wwwhsd at gmail.com>
> > Subject: Re: [R] Accessing data via url
> > To: "John Kane" <jrkrideau at yahoo.ca>
> > Cc: r-help at r-project.org,
> "Dieter Menne" <dieter.menne at menne- 
> > biomed.de>
> > Received: Friday, January 7, 2011, 1:31 PM
> >
> > Google redirect to:
> >
> > https://6326258883408400442-a-1802744773732722657-s-sites.googlegroups.com/site/jrkrideau/home/general-stores/duplicates.csv?attachauth=ANoY7crKufJCh6WJtrooAoCEKIYzT9u-TObiYElZaXj2XQhKRI9-oEMyKH3VN8YGuNtMHs2ec2qKeF0YBWrpSd9jTIs2JI4e6aR60v_AirgtSahjNNjoReLiE2XPZrhm4SF_NwCTu9rBwmirss8EP3UKkoAQ8Nm7JW_Sa6C3Jp-kcbSeo-kl4bCXrZ9yMfS_Ex9maq84-ON6GiGuuHbvtNxuF4HLY3UK7HIjupG3fQYzO9p3UkkTH1c%3D&attredirects=0
> >
> >
> >
> >
> > On Fri, Jan 7, 2011 at 4:29 PM, John Kane <jrkrideau at yahoo.ca>
> wrote:
> >
> >
> > Well it seems to mean that the file has moved. 
> It , to my untrained  
> > eye, seems to be in the same sport as it was yesterday
> BTW I am now  
> > talking about
> >
> >
> > dd <- "https://sites.google.com/site/jrkrideau/home/general-stores/duplicates.csv
> 
> > "
> >
> > Would this indicate it's physically moving on googe
> servers?
> >
> >
> >
> > I had not realised there was something like 
> rawToChar(). Amazing  
> > what R does.
> >
> > Thank ,
> >
> > --- On Fri, 1/7/11, Henrique Dallazuanna <wwwhsd at gmail.com>
> wrote:
> >
> >
> >
> > From: Henrique Dallazuanna <wwwhsd at gmail.com>
> >
> >
> > Subject: Re: [R] Accessing data via url
> > To: "John Kane" <jrkrideau at yahoo.ca>
> > Cc: r-help at r-project.org,
> "Dieter Menne" <dieter.menne at menne- 
> > biomed.de>
> >
> >
> > Received: Friday, January 7,
> > 2011, 1:21 PM
> >
> > Take a look on the return of:
> >
> >  rawToChar(x)
> >
> > On Fri, Jan 7, 2011 at 4:13 PM, John Kane <jrkrideau at yahoo.ca>
> wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> > --- On Fri, 1/7/11, Dieter Menne <dieter.menne at menne-biomed.de>
> wrote:
> >
> >
> >
> >> From: Dieter Menne <dieter.menne at menne-biomed.de>
> >
> >
> >
> >> Your original file is no longer there, but when I
> try RCurl
> >
> >> with a png file
> >
> >> that is present, I get a certificate error:
> >
> >>
> >
> >> Dieter
> >
> >
> >
> > Since replaced with
> >
> > dd <- "https://sites.google.com/site/jrkrideau/home/general-stores/duplicates.csv
> 
> > "
> >
> >
> >
> >
> >
> > library(RCurl)
> >
> > dd <- "https://sites.google.com/site/jrkrideau/home/general-stores/duplicates.csv
> 
> > "
> >
> > x = getBinaryURL(dd, ssl.verifypeer = FALSE)
> >
> >
> >
> > seems to be downloading a binary file.
> >
> >
> >
> > Thanks
> >
> >
> >
> > ______________________________________________
> >
> > 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.
> >
> >
> >
> >
> > -- 
> > Henrique Dallazuanna
> > Curitiba-Paraná-Brasil
> > 25° 25' 40" S 49° 16' 22" O
> >
> >
> >
> >
> >
> > -- 
> > Henrique Dallazuanna
> > Curitiba-Paraná-Brasil
> > 25° 25' 40" S 49° 16' 22" O
> >
> >
> >
> >
> >     [[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.
> 
> David Winsemius, MD
> West Hartford, CT
> 
> 





More information about the R-help mailing list