On 8/24/2007 6:58 AM, Ronaldo Reis Junior wrote: > Hi, > > It is possible to use a shell command inside a R script? > > I'm write a R script and I like to put somes shell commands inside to R. > Somethink like: convert fig01.png fig01.xpm or sed ..., etc.
The details and available functions depend on the platform, but you want to look at ?system, ?shell, and/or ?shell.exec. (These all exist in Windows; on Unix-alikes, you probably won't have the latter two.) Duncan Murdoch ______________________________________________ R-help@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.