Re: [R] Execute expression ( R -e) without close

From: Prof Brian Ripley <>
Date: Fri, 18 May 2007 16:57:38 +0100 (BST)

You cannot. '-e' is modelled on batch tools, and is really back-end support for Rscript -e.

See ?Startup for other ways to achieve what you seem to be trying to do.

On Fri, 18 May 2007, marcelll wrote:

> I need to find a way how to execute an expression with the new command line
> parameter in R (R -e "AnExpression") without R get closed after the
> expression has been evaluated.
> For example if i want to start R with a plot or start R with a *.RData file.
> Any help or suggestions are appreciated !

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 18 May 2007 - 16:11:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 May 2007 - 11:30:57 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.