file.copy returning "FALSE"?

View: New views
2 Messages — Rating Filter:   Alert me  

file.copy returning "FALSE"?

by Jonathan Greenberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

--j

--

Jonathan A. Greenberg, PhD
Postdoctoral Scholar
Center for Spatial Technologies and Remote Sensing (CSTARS)
University of California, Davis
One Shields Avenue
The Barn, Room 250N
Davis, CA 95616
Cell: 415-794-5043
AIM: jgrn307, MSN: jgrn307@..., Gchat: jgrn307

______________________________________________
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.

Re: file.copy returning "FALSE"?

by Duncan Murdoch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.