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
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
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
Sorry.. typo...
file.copy(file.path(fromFolder,list.of.files), toFolder)
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
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:
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
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
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
8 matches
Mail list logo