copyDirectory {R.utils} | R Documentation |
Copies a directory.
## Default S3 method: copyDirectory(from, to=".", ..., private=TRUE, recursive=TRUE)
from |
The pathname of the source directory to be copied. |
to |
The pathname of the destination directory. |
... |
Additional arguments passed to
file.copy (), e.g. overwrite . |
private |
If TRUE , files (and directory) starting with
a period is also copied, otherwise not. |
recursive |
If TRUE , the subdirectories are copied too,
otherwise not. |
Returns (invisibly) a character
vector
of pathnames copied.
Henrik Bengtsson (http://www.braju.com/R/)