[R] Accessing data via url

Duncan Temple Lang duncan at wald.ucdavis.edu
Sat Jan 8 23:38:08 CET 2011


Just for the record, you don't need to manually find the
URL to which your are being redirected by using the followlocation
option in any of the RCurl functions:


 tt = getURLContent("https://sites.google.com/site/jrkrideau/home/general-stores/duplicates.csv",
                      followlocation = TRUE)


(Same with getBinaryURL, but the file is not binary so no need to ask it to return
the file as binary. getURLContent() figures out the "right" thing to do.)

  D.

On 1/7/11 11:08 AM, David Winsemius wrote:
> 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
> 
>



More information about the R-help mailing list