Skip to content
Prev 42656 / 398506 Next

ReadLines does not give results with urls

Hello,

I am using R version 1.8.1 on a linux machine (Suse 8.2.).
I have problems to use readLines() with urls.

This seems to be a problem with our proxy-server. 
Downloading files work with download.file() with wget but not without:
This works!
This does not work!

For readLines() there seems not to be the possibility to use wget.
So I can only read the local pages which are accessible without proxy-server
but not:
This does give the following response after 60 sec:
cannot open the connection
After reading the help pages I checked the http_proxy environmental 
variable, which seems to be OK to me:
http_proxy 
		"http://proxy.mh-hannover.de:8080/"
no_proxy 
    "" 

Setting the options options(download.file.method="wget") helps
for download.file() but not for "readLines().

Does anybody has a further idea, how to manipulate readLines()
so that it uses the proxy-server?

Thank you

Luzie