[R] It is possible to use a Shell command inside a R script?
Duncan Murdoch
murdoch at stats.uwo.ca
Fri Aug 24 14:32:00 CEST 2007
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
More information about the R-help
mailing list