I would like to download climate data files from PCMDI website using R. I
tried this line below and I was not able to get the file mainly due to user
name and password requirements. I am looking for help for setting up the
user and password within R (or somewhere). I have read the FAQ but
unfortunately I am a newbie on R and couldnt figure out how to do it. Many
thanks in advance 

download.file('ftp://ftp-esg.ucllnl.org/ipcc/20c3m/land/mo/pr//run1/pr_A1_1.nc',
destfile="clt_A1.nc", method="wget", quiet = FALSE, mode = "w",cacheOK=TRUE)


--2009-07-22 19:20:12-- 
ftp://ftp-esg.ucllnl.org/ipcc/20c3m/land/mo/pr//run1/pr_A1_1.nc
           => `clt_A1.nc'
Resolving ftp-esg.ucllnl.org... 192.12.137.5
Connecting to ftp-esg.ucllnl.org|192.12.137.5|:21... connected.
Logging in as anonymous ... 
Login incorrect.
Warning message:
In
download.file("ftp://ftp-esg.ucllnl.org/ipcc/20c3m/land/mo/pr//run1/pr_A1_1.nc";,
 
:
  download had nonzero exit status
-- 
View this message in context: 
http://www.nabble.com/download.file%28%29-help%21-setting-the-proxy-for-user--passw0rd-tp24610964p24610964.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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