[Rd] save() does not issue an error if it tries to write on overfull hdd (PR#13866)

benjamin.hofner at imbe.med.uni-erlangen.de benjamin.hofner at imbe.med.uni-erlangen.de
Tue Aug 4 12:05:11 CEST 2009

Full_Name: Benjamin Hofner
Version: 2.9.1
OS: Ubuntu 8.04
Submission from: (NULL) (


if I try to save (via save(...), write.table(...), etc.) some data on a full (!)
disc (free disc space was ~ 20Kb) the save command seems to finish without an
error. However, if you try to load the saved file to R again different errors
(depending on the load routine) occur. I think it would be very helpful for
useRs if an error is returned if the disc is full (similar to the error if the
user has no write permission).

> version
platform       i486-pc-linux-gnu           
arch           i486                        
os             linux-gnu                   
system         i486, linux-gnu             
major          2                           
minor          9.1                         
year           2009                        
month          06                          
day            26                          
svn rev        48839                       
language       R                           
version.string R version 2.9.1 (2009-06-26)

> setwd("/path_to_full_directory/")
> test <- 1:10

> save("test", file="testdata.RData") # no error is returned here
> load("testdata.RData")
Fehler in if (!grepl("RD[AX]2\n", magic)) { : Argument hat Länge 0

> write.table(test, "test.csv") # no error is returned here
> read.table("test.csv")
Fehler in read.table("test.csv") : keine Zeilen im Input verfügbar

Best wishes,

More information about the R-devel mailing list