« Return to Thread: file.copy returning "FALSE"?

Re: file.copy returning "FALSE"?

by Duncan Murdoch-2 :: Rate this Message:

Reply to Author | View in Thread

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

______________________________________________
R-help@... 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.

 « Return to Thread: file.copy returning "FALSE"?