Re: [R] Manipulate directory-help

2009-09-22 Thread Henrique Dallazuanna
Try this: sourceDir <- "C:\\temp\\" destDir <- "C:\\new\\new" if(is.na(file.info(destDir)$isdir)) dir.create(destDir, recursive = TRUE) file.copy(dir(sourceDir, full.names = TRUE), destDir) On Tue, Sep 22, 2009 at 5:59 AM, Tammy Ma wrote: > > Dear R-users, > > I have a problem: > > I h

Re: [R] Manipulate directory-help

2009-09-22 Thread David Winsemius
On Sep 22, 2009, at 4:59 AM, Tammy Ma wrote: Dear R-users, I have a problem: I have many files in the directory:"C:/Documents and Settings/lma/ Desktop/FamilyAEntrepreneurs/Entrepreneurs/Juha" I want to copy those files into the new directory: "C:/Documents and Settings/lma/My Document

[R] Manipulate directory-help

2009-09-22 Thread Tammy Ma
Dear R-users, I have a problem: I have many files in the directory:"C:/Documents and Settings/lma/Desktop/FamilyAEntrepreneurs/Entrepreneurs/Juha" I want to copy those files into the new directory: "C:/Documents and Settings/lma/My Documents/Juha/book" (<-use "paste"), I first create the dir