[R] System with manual options

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Jan 18 12:58:11 CET 2009


See ?pipe. You can pipe input to a program you run that way.

On Sun, 18 Jan 2009, Hadassa Brunschwig wrote:

> Hi
>
> I was wondering if there was a way to run system when there
> is e.g. a C program which is not totally command-line driven.
> That is, I have a C program which requires manual input of
> options into the shell during the run. I would like to run this program from
> R and as far as I have seen system() does not handle manual options (?).
>
> Is there thus a way to use these C programs anyway through
> R (i.e. without touching the C programs and fixing the problem in R)?

I think you mean 'using R".

> Thanks a lot for any comments.
>
> --
> Hadassa Brunschwig
> PhD Student
> Department of Statistics
> The Hebrew University of Jerusalem
> http://www.stat.huji.ac.il

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list