Re: [R] copy directory command

2009-02-13 Thread Tony Breyal
Hi Tim, This is what i usually try and do (see ?file.copy) ## R Start... > src.dir <- 'PFO-SBS001\\Redirected\\tonyb\\Desktop\\folderA\\' > dest.dir <- 'PFO-SBS001\\Redirected\\tonyb\\Desktop\\folderB\\' > > file.names <- dir(src.dir) > sapply(file.names, function(x) { +

Re: [R] copy directory command

2009-02-13 Thread Prof Brian Ripley
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 versi