[R] copy directory command
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Feb 13 16:09:23 CET 2009
On Fri, 13 Feb 2009, Tim Smith wrote:
> I was trying to copy a directory from one location to another. Is
> there a command to do this (similar to the file.copy command)?
file.copy() does this in the development version of R. Most people
use
system(paste("cp -r", from, to))
in earlier versions (needs a Unix-alike or Rtools).
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list