file.copy returning "FALSE"?

2 messages Options
Embed this post
Permalink
Jonathan Greenberg

file.copy returning "FALSE"?

Reply Threaded More More options
Print post
Permalink
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: [hidden email], Gchat: jgrn307

______________________________________________
[hidden email] 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.
Duncan Murdoch

Re: file.copy returning "FALSE"?

Reply Threaded More More options
Print post
Permalink
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

______________________________________________
[hidden email] 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.