Displaying 1 result from an estimated 1 matches for "seabldlnx3201".
2012 Jan 27
2
misfeature: forced file.copy() of a file over itself truncates the file ...
Try this:
fn <- "tmp.dat"
x <- 1:3
dump("x",file=fn)
file.info(fn) ## 9 bytes
file.copy(paste("./",fn,sep=""),fn,overwrite=TRUE)
file.info(fn) ## 0 bytes (!!)
Normally file.copy() checks and disallows overwriting a file with
itself, but it only checks whether character string 'from' is the same
as character string 'to'