Created attachment 2240 [details]
When you use the function write.table, if the disk is full for example, the function doesn't return an error and the file is written but truncated.
It can be a source of mistakes because you can then copy the output file and think everything is ok.
How to reproduce
>> write.csv(1:10000000, 'path')
You must have a path with a small amount of disk available (on linux: http://souptonuts.sourceforge.net/quota_tutorial.html)
I have added a patch but it may need refactoring because there is a lot of copy/paste.
Any news about my contribution ?
Thanks in advance for your time.
Fixed in R-devel as of rev 72891. Will port to R-patched after some testing.
Thanks a lot Duncan!
Now ported to R-patched