[R] R for copying and pasting selected image files?

Robert Baer rbaer at atsu.edu
Mon Mar 12 14:47:30 CET 2007


You don't tell us your OS, but the system() command should let you use your 
OS to copy/move files on most OSs.

see ?system
Other commands that might be helpful for this job are:
?setwd
?getwd
?dir

----- Original Message ----- 
From: "Kim Milferstedt" <milferst at uiuc.edu>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, March 12, 2007 8:33 AM
Subject: [R] R for copying and pasting selected image files?


> Hello,
>
> I would like to use R to process a list of text strings. The text
> strings are filenames, encoding experimental settings. Based on the
> information in there I'd like to select certain files and copy only
> the selected files to another directory.
>
> The files are images and there is no need, actually no desire, to
> open them. Is there a way to use R for copying and pasting files with
> any file extension to another directory without opening them?
>
> Thanks already for any help,
>
> Kim
>
> __________________________________________
>
> Kim Milferstedt
> University of Illinois at Urbana-Champaign
> Department of Civil and Environmental Engineering
> 4125 Newmark Civil Engineering Laboratory
> 205 North Mathews Avenue MC-250
> Urbana, IL 61801
> USA
> phone: (001) 217 333-9663
> fax: (001) 217 333-6968
> email: milferst at uiuc.edu
> http://cee.uiuc.edu/research/morgenroth
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list