[R] How to move files from one folder to another

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Mar 29 00:13:28 CEST 2012



On 28.03.2012 19:11, Sarah Goslee wrote:
> Within R? On what OS?
>
> You could presumably use system() with the OS-specific command, which
> might be cp or mv or copy or move depending on your OS.
>
> But I'm not sure why you'd want to do this from R.


Actually it is sometimes handy, and file.rename() is designed to do 
that, but is has limitations, see its help page.

Best,
Uwe Ligges


> On Wed, Mar 28, 2012 at 8:07 AM, sagarnikam123<sagarnikam123 at gmail.com>  wrote:
>> How to move files from one folder to another i.e. cutting/copying from one
>> location&  pasting to another
>>
>
>



More information about the R-help mailing list