system is one option, as it turns out, this is common enough that there are
special functions for it, see ?file.copy
More generally, this is a great use of apropos:
apropos("file")
Shows a lot of options. An alternative work flow would be a shell script that
runs r scripts and also interacts
On 02/11/11 15:45, Erin Hodgess wrote:
Never mind...I used paste and all is well.
sorry for the trouble.
You *might* want to consider using file.rename() rather than
system(). Dunno what the pro's and con's might be.
Still have to use paste(), but! :-)
cheers,
Rolf
___
Never mind...I used paste and all is well.
sorry for the trouble.
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodg...@gmail.com
__
R-help@r-project.org mailing li
Dear R People:
I have a variable named file1 which contains the name of a file. I
would like to copy that file to a different directory. Can I do that
via the system command or is there a better way, please?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathemat
4 matches
Mail list logo