Re: [R] Read from url requiring authentication?

2008-09-09 Thread Damien
René Sachse wrote:

 Damien schrieb:

  I'm looking into opening an url on a server which requires
 authentication.

 Under a Windows Operating System you could try to start R with the
 --internet2 option. This worked in my case.

Thanks René it did the trick for me too!

Best Regards,
Damien

__
R-help@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.


Re: [R] Read from url requiring authentication?

2008-09-09 Thread Damien
On 8 Sep, 20:15, Prof Brian Ripley [EMAIL PROTECTED] wrote:
 On Mon, 8 Sep 2008, Damien wrote:
  Hi all,

  I'm looking into opening an url on a server which requires
 authentication.

  After failing to find some kind of connection structure to fill in I
  turned to explicitly stating the credentials in the url itself (e.g.
  http://username:[EMAIL PROTECTED]).
  Sadly this didn't do the trick either and both source() and url()
  failed trying to resolve the username ()

  Is there anything I missed in the documentation/internet/groups?
  If not could I maybe add to the existing R functions as it doesn't
  seem too far of a stretch to allow the username and password in the
  url string fed to the web server?

 Look at the RCurl package: it is more like download.file than url, though,
 and you could perhaps wse the wget method of download.file.

Thank you for the quick reply,

it seems that the argument --internet2 did solve my immediate
problem
but I'll have a look at RCurl too.

Best Regards,
Damien

__
R-help@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.


[R] Read from url requiring authentication?

2008-09-08 Thread Damien
Hi all,

I'm looking into opening an url on a server which requires
authentication.

After failing to find some kind of connection structure to fill in I
turned to explicitly stating the credentials in the url itself (e.g.
http://username:[EMAIL PROTECTED]).
Sadly this didn't do the trick either and both source() and url()
failed trying to resolve the username ()

Is there anything I missed in the documentation/internet/groups?
If not could I maybe add to the existing R functions as it doesn't
seem too far of a stretch to allow the username and password in the
url string fed to the web server?

Thanks,
Damien

__
R-help@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.


Re: [R] Read from url requiring authentication?

2008-09-08 Thread Prof Brian Ripley

On Mon, 8 Sep 2008, Damien wrote:


Hi all,

I'm looking into opening an url on a server which requires
authentication.

After failing to find some kind of connection structure to fill in I
turned to explicitly stating the credentials in the url itself (e.g.
http://username:[EMAIL PROTECTED]).
Sadly this didn't do the trick either and both source() and url()
failed trying to resolve the username ()

Is there anything I missed in the documentation/internet/groups?
If not could I maybe add to the existing R functions as it doesn't
seem too far of a stretch to allow the username and password in the
url string fed to the web server?


Look at the RCurl package: it is more like download.file than url, though, 
and you could perhaps wse the wget method of download.file.


--
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@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.


Re: [R] Read from url requiring authentication?

2008-09-08 Thread René Sachse

Damien schrieb:


I'm looking into opening an url on a server which requires
authentication.


Under a Windows Operating System you could try to start R with the 
--internet2 option. This worked in my case.


Best regards
Rene

__
R-help@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.