[R] remove a "corrupted file" after using download.file() with R on Windows 7

Fabien Tarrade fabien.tarrade at gmail.com
Sun Oct 2 18:48:30 CEST 2016

Hi Robert,

sorry for the delays
>> Sometime download.file() failed to download the file and I would like 
>> to remove the correspond file.
> No answers, but a couple of additional questions:
> 1)  Does the issue persist if you close R or does the file remain 
> locked against deletion?
no, if I close R then I can remove the file
> 2) If so, is there a related process in the task list if you use 
nothing special a part from R studio
> 3) Does       print(e$message) yield any useful information when it 
> hangs?
I have an url to access the pages of .tiff documents. The issue that I 
don't know how many pages have each documents. So I try to copy and 
incrememt the index for the number of pges until it failed. I know it is 
not an idea solution but this is I have now until we get this info into 
a DB.
> Would debugging in R Studio shed additional light?
I will give a try.


Dr Fabien Tarrade

Quantitative Analyst/Developer - Data Scientist

Senior data analyst specialised in the modelling, processing and 
statistical treatment of data.
PhD in Physics, 10 years of experience as researcher at the forefront of 
international scientific research.
Fascinated by finance and data modelling.

Geneva, Switzerland

Email : contact at fabien-tarrade.eu <mailto:contact at fabien-tarrade.eu>
Phone : www.fabien-tarrade.eu <http://www.fabien-tarrade.eu>
Phone : +33 (0)6 14 78 70 90

LinkedIn <http://ch.linkedin.com/in/fabientarrade/> Twitter 
<https://twitter.com/fabtar> Google 
<https://plus.google.com/+FabienTarradeProfile/posts> Facebook 
<https://www.facebook.com/fabien.tarrade.eu> Google 
<skype:fabtarhiggs?call> Xing <https://www.xing.com/profile/Fabien_Tarrade>

More information about the R-help mailing list