Re: [R] Accessing data via url

2011-09-28 Thread moldovean
hi I think this already a closed topic since you figure it out yourself. but you can always try to fetch data from Google docs (first make the spreadsheet public) and then writing this snippet: library(RCurl)

Re: [R] Accessing data via url

2011-01-08 Thread John Kane
Thanks --- On Fri, 1/7/11, David Winsemius dwinsem...@comcast.net wrote: From: David Winsemius dwinsem...@comcast.net Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: Henrique Dallazuanna www...@gmail.com, r-help@r-project.org, Dieter Menne dieter.me...@menne

Re: [R] Accessing data via url

2011-01-08 Thread Uwe Ligges
On 07.01.2011 19:18, John Kane wrote: --- On Fri, 1/7/11, Prof Brian Ripleyrip...@stats.ox.ac.uk wrote: From: Prof Brian Ripleyrip...@stats.ox.ac.uk Subject: Re: [R] Accessing data via url ?read.table says ‘file’ can also be a complete URL. This is implemented by url

Re: [R] Accessing data via url

2011-01-08 Thread Duncan Temple Lang
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

Re: [R] Accessing data via url

2011-01-07 Thread Prof Brian Ripley
?read.table says ‘file’ can also be a complete URL. This is implemented by url(): see the section on URLs on its help page. You haven't followed the posting guide and told us your OS, and what the section says does depend on the OS. On Thu, 6 Jan 2011, John Kane wrote: # Can

Re: [R] Accessing data via url

2011-01-07 Thread Dieter Menne
John Kane-2 wrote: # Can anyone suggest why this works datafilename - http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data; person.data - read.table(datafilename,header=TRUE) # but this does not? dd -

Re: [R] Accessing data via url

2011-01-07 Thread Mike Marchywka
Date: Fri, 7 Jan 2011 00:24:19 -0800 From: dieter.me...@menne-biomed.de To: r-help@r-project.org Subject: Re: [R] Accessing data via url John Kane-2 wrote: # Can anyone suggest why this works datafilename - http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data

Re: [R] Accessing data via url

2011-01-07 Thread Henrique Dallazuanna
With the ssl.verifypeer = FALSE argument it works: x = getBinaryURL(dd, ssl.verifypeer = FALSE) On Fri, Jan 7, 2011 at 6:24 AM, Dieter Menne dieter.me...@menne-biomed.dewrote: John Kane-2 wrote: # Can anyone suggest why this works datafilename -

Re: [R] Accessing data via url

2011-01-07 Thread Dieter Menne
Henrique Dallazuanna wrote: With the ssl.verifypeer = FALSE argument it works: x = getBinaryURL(dd, ssl.verifypeer = FALSE) Thank, good to know. It's only in the examples of ..., but is looks like a parameter important enough to be included in the docs of getBinaryURL. Digging

Re: [R] Accessing data via url

2011-01-07 Thread John Kane
Dallazuanna www...@gmail.com Subject: Re: [R] Accessing data via url To: Dieter Menne dieter.me...@menne-biomed.de Cc: r-help@r-project.org Received: Friday, January 7, 2011, 7:07 AM With the ssl.verifypeer = FALSE argument it works: x = getBinaryURL(dd, ssl.verifypeer = FALSE) On Fri, Jan 7

Re: [R] Accessing data via url

2011-01-07 Thread John Kane
--- On Fri, 1/7/11, Dieter Menne dieter.me...@menne-biomed.de wrote: From: Dieter Menne dieter.me...@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 -

Re: [R] Accessing data via url

2011-01-07 Thread John Kane
--- On Fri, 1/7/11, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: From: Prof Brian Ripley rip...@stats.ox.ac.uk Subject: Re: [R] Accessing data via url ?read.table says            ‘file’ can also be a complete URL. This is implemented by url(): see the section on URLs on its help

Re: [R] Accessing data via url

2011-01-07 Thread Henrique Dallazuanna
Take a look on the return of: rawToChar(x) On Fri, Jan 7, 2011 at 4:13 PM, John Kane jrkrid...@yahoo.ca wrote: --- On Fri, 1/7/11, Dieter Menne dieter.me...@menne-biomed.de wrote: From: Dieter Menne dieter.me...@menne-biomed.de Your original file is no longer there, but when I try

Re: [R] Accessing data via url

2011-01-07 Thread John Kane
had not realised there was something like  rawToChar(). Amazing what R does. Thank , --- On Fri, 1/7/11, Henrique Dallazuanna www...@gmail.com wrote: From: Henrique Dallazuanna www...@gmail.com Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: r-help@r-project.org

Re: [R] Accessing data via url

2011-01-07 Thread John Kane
Great, but how did you do that?  --- On Fri, 1/7/11, Henrique Dallazuanna www...@gmail.com wrote: From: Henrique Dallazuanna www...@gmail.com Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: r-help@r-project.org, Dieter Menne dieter.me...@menne-biomed.de Received

Re: [R] Accessing data via url

2011-01-07 Thread David Winsemius
-- 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 www...@gmail.com wrote: From: Henrique Dallazuanna www...@gmail.com Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: r-help@r-project.org, Dieter

Re: [R] Accessing data via url

2011-01-07 Thread Henrique Dallazuanna
, --- On *Fri, 1/7/11, Henrique Dallazuanna www...@gmail.com* wrote: From: Henrique Dallazuanna www...@gmail.com Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: r-help@r-project.org, Dieter Menne dieter.me...@menne-biomed.de Received: Friday, January 7, 2011, 1:21 PM

Re: [R] Accessing data via url

2011-01-07 Thread Henrique Dallazuanna
...@gmail.com Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: r-help@r-project.org, Dieter Menne dieter.me...@menne-biomed.de Received: Friday, January 7, 2011, 1:31 PM Google redirect to: https://6326258883408400442-a-1802744773732722657-s-sites.googlegroups.com/site

[R] Accessing data via url

2011-01-06 Thread John Kane
# Can anyone suggest why this works datafilename - http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data; person.data - read.table(datafilename,header=TRUE) # but this does not? dd - https://sites.google.com/site/jrkrideau/home/general-stores/trees.txt; treedata - read.table(dd,

Re: [R] Accessing data via url

2011-01-06 Thread John Kane
results.  It currently is not all that important but it's definately annoying.  --- On Thu, 1/6/11, Alberto Negron albertoneg...@gmail.com wrote: From: Alberto Negron albertoneg...@gmail.com Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: R R-help r-h

Re: [R] Accessing data via url

2011-01-06 Thread John Kane
--- On Thu, 1/6/11, Alberto Negron albertoneg...@gmail.com wrote: From: Alberto Negron albertoneg...@gmail.com Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: R R-help r-h...@stat.math.ethz.ch Received: Thursday, January 6, 2011, 4:20 PM there is an option

Re: [R] Accessing data via url

2011-01-06 Thread steven mosher
https your second link is an https that's not supported as I recall. ?url On Thu, Jan 6, 2011 at 11:53 AM, John Kane jrkrid...@yahoo.ca wrote: # Can anyone suggest why this works datafilename - http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data; person.data -

Re: [R] Accessing data via url

2011-01-06 Thread steven mosher
Here John, from the manual URLs A note on file:// URLs. The most general form (from RFC1738) is file://host/path/to/file, but R only accepts the form with an empty host field referring to the local machine. This is then file:///path/to/file, where path/to/file is relative to ‘/’. So although

Re: [R] Accessing data via url

2011-01-06 Thread Alberto Negron
The only difference I see is the http vs https, perhaps you require a sort of auth to access that file. On 6 January 2011 19:53, John Kane jrkrid...@yahoo.ca wrote: # Can anyone suggest why this works datafilename - http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data;

Re: [R] Accessing data via url

2011-01-06 Thread Alberto Negron
but it's definately annoying. --- On *Thu, 1/6/11, Alberto Negron albertoneg...@gmail.com* wrote: From: Alberto Negron albertoneg...@gmail.com Subject: Re: [R] Accessing data via url To: John Kane jrkrid...@yahoo.ca Cc: R R-help r-h...@stat.math.ethz.ch Received: Thursday, January 6, 2011, 3