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)
u="https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0As6HUAxhy0Q7dDB0bjh4T2
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";,
followlocatio
On 07.01.2011 19:18, John Kane wrote:
--- On Fri, 1/7/11, Prof Brian Ripley wrote:
From: Prof Brian Ripley
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
Thanks
Thanks
--- On Fri, 1/7/11, David Winsemius wrote:
> From: David Winsemius
> Subject: Re: [R] Accessing data via url
> To: "John Kane"
> Cc: "Henrique Dallazuanna" , r-help@r-project.org, "Dieter
> Menne"
> Received: Friday, January 7, 2011,
> does.
>
> Thank ,
>
>
> --- On *Fri, 1/7/11, Henrique Dallazuanna
> http://mc/compose?to=www...@gmail.com>
> >* wrote:
>
>
> From: Henrique Dallazuanna
> http://mc/compose?to=www...@gmail.com>
> >
> Subject: Re: [R] Accessing data via
r(). Amazing what R
> does.
>
> Thank ,
>
>
> --- On *Fri, 1/7/11, Henrique Dallazuanna * wrote:
>
>
> From: Henrique Dallazuanna
> Subject: Re: [R] Accessing data via url
> To: "John Kane"
> Cc: r-help@r-project.org, "Dieter Menne"
> Rec
&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 wrote:
From: Henrique Dallazuanna
Subject: Re: [R] Accessing data via url
To: "John Kane"
Cc: r-help@r-project.org, "Dieter M
Great, but how did you do that?
--- On Fri, 1/7/11, Henrique Dallazuanna wrote:
From: Henrique Dallazuanna
Subject: Re: [R] Accessing data via url
To: "John Kane"
Cc: r-help@r-project.org, "Dieter Menne"
Received: Friday, January 7, 2011, 1:31 PM
Google
g on googe servers?
I had not realised there was something like rawToChar(). Amazing what R does.
Thank ,
--- On Fri, 1/7/11, Henrique Dallazuanna wrote:
From: Henrique Dallazuanna
Subject: Re: [R] Accessing data via url
To: "John Kane"
Cc: r-help@r-project.org, "Dieter Me
Take a look on the return of:
rawToChar(x)
On Fri, Jan 7, 2011 at 4:13 PM, John Kane wrote:
>
>
> --- On Fri, 1/7/11, Dieter Menne wrote:
>
> > From: Dieter Menne
>
> > Your original file is no longer there, but when I try RCurl
> > with a png file
> > that is present, I get a certificate er
--- On Fri, 1/7/11, Prof Brian Ripley wrote:
> From: Prof Brian Ripley
> 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
Th
--- On Fri, 1/7/11, Dieter Menne wrote:
> From: Dieter Menne
> 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/dupli
2f 73 69 74 65 2f 6a 72 6b 72 69
64 65 61 75 2f 68 6f 6d 65
[199] 2f 67 65 6e 65 72 61 6c 2d 73 74 6f 72 65 73 2f 64 75 70 6c 69 63 61 74
65 73 2e 63 73 76 3f 61 74
[232] 74 72 65 64 69 72 65 63 74 73 3d 30 22 3e 68 65 72 65 3c 2f 41 3e 2e 0a
3c 2f 42 4f 44 59 3e 0a 3c
[265] 2f 48 54 4d 4c 3e 0a
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 t
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
wrote:
>
>
> John Kane-2 wrote:
> >
> > # Can anyone suggest why this works
> >
> > datafilename <-
> > "http://personality-project.org/r/datasets/maps
> 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 &
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 <-
> "https://sites.google.com/site/jrkrideau/home/gene
?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 a
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 wrote:
> # Can anyone suggest why this works
>
> datafilename <- "
> http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data";
> person.data <- r
is not all that important but it's definately annoying.
>
> --- On *Thu, 1/6/11, Alberto Negron * wrote:
>
>
> From: Alberto Negron
> Subject: Re: [R] Accessing data via url
> To: "John Kane"
> Cc: "R R-help"
> Received: Thursday, January 6, 201
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 the
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 wrote:
> # Can anyone suggest why this works
>
> datafilename <- "
> http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data";
> person.data <- read.table(datafilen
--- On Thu, 1/6/11, Alberto Negron wrote:
From: Alberto Negron
Subject: Re: [R] Accessing data via url
To: "John Kane"
Cc: "R R-help"
Received: Thursday, January 6, 2011, 4:20 PM
there is an option in google doc to make public that file providing and http
url, try Shar
g the same results. It currently is
not all that important but it's definately annoying.
--- On Thu, 1/6/11, Alberto Negron wrote:
From: Alberto Negron
Subject: Re: [R] Accessing data via url
To: "John Kane"
Cc: "R R-help"
Received: Thursday, January 6, 2011, 3:
# 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.tab
25 matches
Mail list logo