On 06.06.2012 23:53, Gurubaramurugeshan, Arun wrote:
Hi,
I am trying to download data off of this web site 
http://www.eia.gov/oil_gas/petroleum/data_publications/wrgp/mogas_history.html
I used to set the proxy following code to set the proxy

Sys.setenv(wget="http://username:password@"proxy server":port")


You forgot the report the error after trying this line of code, the error is expected to be

Error: unexpected symbol in " Sys.setenv(wget="http://username:password@"proxy";

If you need double inner quotes, either escape them or use single outer quotes as in:

Sys.setenv(wget='http://username:password@"proxy server":port')

Uwe Ligges




I used the following code to download the data

GAS<-read.table("http://www.eia.gov/petroleum/gasdiesel/xls/pswrgvwall.csv"; , sep="," , 
header="T")

Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
   unable to connect to 'www.eia.gov' on port 80.


Am I setting the proxy correctly?



Thanks for your help.

Arun
---


        [[alternative HTML version deleted]]

______________________________________________
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-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.

Reply via email to