[R] file.copy returning "FALSE"?
Duncan Murdoch
murdoch at stats.uwo.ca
Fri Jul 10 04:11:57 CEST 2009
On 09/07/2009 9:53 PM, Jonathan Greenberg wrote:
> I'm running the command:
>
> file.copy(fnhdr,outdir,overwrite=TRUE)
>
> Which successfully copies the file I want to the directory I want, but
> each time it prints "FALSE" -- what does this mean, and how do I
> suppress this output?
It means the operation failed. Suppressing the output is easy, but it
probably makes more sense to try to figure out why R thinks it failed
and you think it didn't. R will report that if it can't open the source
or destination file, or if the file size of the destination file after
copying is different than the size of the source file.
Duncan Murdoch
More information about the R-help
mailing list