[R] help -> RE: Download.file problem
Santosh Srinivas
santosh.srinivas at gmail.com
Tue Oct 19 02:34:47 CEST 2010
Dear R-helpers ... any thoughts on the below issue ... will help me complete
a small project!
Strange problem with download.file . for non existent URL an empty file is
created but I am not able to delete the without shutting down R
Example:
> download.file("http://test.com/test.txt","test.txt")
trying URL 'http://test.com/test.txt'
Error in download.file("http://test.com/test.txt", "test.txt") :
cannot open URL 'http://test.com/test.txt'
In addition: Warning message:
In download.file("http://test.com/test.txt", "test.txt") :
cannot open: HTTP status was '404 Not Found'
If you go to working directory through windows explorer, you can see the
empty file test.txt but try deleteting the file and it says that the file is
locked.
I tried closeAllConnections() but of no use.
Any suggestions?
Thanks,
S
More information about the R-help
mailing list