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 ! -- View this message in context: http://www.nabble.com/Execute-expression-%28-R--e%29-without-close-tf3777652.html#a10681974 Sent from the R help mailing list archive at Nabble.com.
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, 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
Maybe Matching Threads
- matlab norm(h) command in R: sqrt(sum(h^2)) - use in an expression
- [Bug 8720] New: rsync -n -e ssh creates ssh tunnel which fails to close after command completes
- execute R expression from command line
- How Can I Execute a String Expression?
- [PATCH] edit: Add -e 'expr' option to non-interactively apply expression to the file.