Re: [R] using a file name in a system call

2011-11-01 Thread Joshua Wiley
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

Re: [R] Using a file name in a system call

2011-11-01 Thread Rolf Turner
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 ___

[R] Using a file name in a system call

2011-11-01 Thread Erin Hodgess
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

[R] using a file name in a system call

2011-11-01 Thread Erin Hodgess
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