[R] how to just download file on disk by the link

2011-12-05 Thread Philipp Chapkovski
Sorry for stupid question but is there any way to just download file (excel
file) from the url to the disk with a certain name?
Now it seems that I should open it (via read.xls) and then write it by
write.xls. But I am pretty sure it should be something much easier?

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


Re: [R] how to just download file on disk by the link

2011-12-05 Thread Gabor Grothendieck
On Mon, Dec 5, 2011 at 7:03 AM, Philipp Chapkovski chapkov...@gmail.com wrote:
 Sorry for stupid question but is there any way to just download file (excel
 file) from the url to the disk with a certain name?
 Now it seems that I should open it (via read.xls) and then write it by
 write.xls. But I am pretty sure it should be something much easier?


read.xls in the gdata package can take the url of an Excel file and
will read it into R.  (It transparently downloads it into a temporary
file and then reads it from there.)

-- 
Statistics  Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.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.