Hi, Is there a function that emulates cp -f on Unix, in that existing but non-writable destination files are removed first?
I thought file.copy(src, dst, overwrite = TRUE) did that, but it doesn't: it will not copy to non-writable dst. To be sure, this behavior is consistent with the documentation. I could do a (conditional) file.remove(dst) first -- just wanted to know if there is a more direct way. -- Best, Hsiu-Khuern. ______________________________________________ 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.