Re: [R] file.copy

2014-11-14 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hello Duncan, Jeff's tweaks to my code has worked. Now I am trying your way. Below are the R script and console. The issue is that the object (list.of.files) has not been created. Any thoughts? Thanks, ### R script ## #file.copy.dm.way.R #identify th

Re: [R] file.copy

2014-11-14 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Jeff, Thank you so much for your help. Below are the revised code (done with your hints) that has worked and the console. I have just added - overwrite=TRUE) to file.copy(). Pradip ### #file.copy.jn.way.R #identify the folders fromFolder <- "H:/R/cis

Re: [R] file.copy

2014-11-14 Thread Duncan Murdoch
On 14/11/2014 8:21 AM, Jeff Newmiller wrote: Sorry.. typo... file.copy(file.path(fromFolder,list.of.files), toFolder) Or construct the list of files containing full paths. See ?list.files. Duncan Murdoch --- Jeff Newmi

Re: [R] file.copy

2014-11-14 Thread Jeff Newmiller
Sorry.. typo... file.copy(file.path(fromFolder,list.of.files), toFolder) --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

Re: [R] file.copy

2014-11-14 Thread Jeff Newmiller
Your list.of.files variable just has filenames without the fromFolder path. Try file.copy(file.path,fromFolder,list.of.files), toFolder) --- Jeff NewmillerThe . . Go Live... DCN:

[R] file.copy

2014-11-14 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hello, Here is something (file.copy) trivial but does not seem to work. I could not figure out what I am doing wrong. The R script below creates folders (fromFolder and toFolder) and finds the list of files (list.of.files) to be copied to the toFolder, which I have verified using the print

Re: [R] file.copy returning "FALSE"?

2009-07-09 Thread Duncan Murdoch
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 ope

[R] file.copy returning "FALSE"?

2009-07-09 Thread Jonathan Greenberg
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