Re: [R] source and localhost

2011-05-23 Thread Thomas . Bock
... > > As Uwe told you, it is not source(), it is file(). > > Please read the documentation for yourself. ok; done! ?file links to ?download.file(). here one can read, that the proxy (and I guess the no_proxy) have to be specified via environment variables. As I showed in my initial mail 1) the

Re: [R] source and localhost

2011-05-22 Thread John
"localhost" is the computer you are working at, and the ip assigned to the loob-back interface. This is normally used for testing networking interfaces. That being so, simply using the path to the file on your machine, e.g. "/home//data/somedata.csv" should work much better. JWD

Re: [R] source and localhost

2011-05-21 Thread Hugo Mildenberger
Thomas, your example works with R-2.13.0 and Apache running on Gentoo. You may try to use "http://127.0.0.1:5984/path/fn.R";, just to exclude that this problem has anything to do with name resolution. Best Hugo > Dear List, > > I have problems with the function source() using a > url of the k

Re: [R] source and localhost

2011-05-20 Thread Thomas . Bock
> > > On 20.05.2011 17:22, thomas.b...@ptb.de wrote: > > Dear List, > > > > I have problems with the function source() using a > > url of the kind: > > > > http://localhost:5984/path/fn.R > > Does > > con <- url("http://localhost:5984/path/fn.R";) > source(url) > close(con) > > work for you? N

Re: [R] source and localhost

2011-05-20 Thread Prof Brian Ripley
On Fri, 20 May 2011, Uwe Ligges wrote: On 20.05.2011 17:22, thomas.b...@ptb.de wrote: Dear List, I have problems with the function source() using a url of the kind: http://localhost:5984/path/fn.R Does con <- url("http://localhost:5984/path/fn.R";) source(url) close(con) work for you?

Re: [R] source and localhost

2011-05-20 Thread Uwe Ligges
On 20.05.2011 17:22, thomas.b...@ptb.de wrote: Dear List, I have problems with the function source() using a url of the kind: http://localhost:5984/path/fn.R Does con <- url("http://localhost:5984/path/fn.R";) source(url) close(con) work for you? Please read ?source carefully and note it

[R] source and localhost

2011-05-20 Thread Thomas . Bock
Dear List, I have problems with the function source() using a url of the kind: http://localhost:5984/path/fn.R I receive Fehler in file(file, "r", encoding = encoding) : kann Verbindung nicht öffnen Zusätzlich: Warnmeldung: In file(file, "r", encoding = encoding) : Öffnen fehlgeschlagen: H