Hi everyone, 

In the situation that the remote file does not exist, download.file fails,
yet it still creates a file as provided for "destfile" argument. I tried to
delete this bad file but got the message that it is still being used by
"other programs", which I assume is R. 

Does anyone know how to avoid this problem? Potential solutions I can think
of now is either checking the existence on remote server before using
download.file, or change download.file's behavior, or use other functions.
Any suggestions are appreciated. 

Stanley 
-- 
View this message in context: 
http://www.nabble.com/When-download.file-fails...-tp22234662p22234662.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