Sébastien
2007-Aug-24 17:47 UTC
[R] How to provide argument when opening RGui from an external application
Dear R-users, I have written a small application (in visual basic) that automatically generate some R scripts. I would like to execute these scripts when my application is being closed. My problem is that I don't know how to pass the 'source(c:/.../myscript.r)' instruction when I programmatically start RGui. Tinn-R is capable of doing such things, so I guess there must be a way to pass arguments to RGui. Any advice or link to relevant references would be greatly appreciated. Sebastien
Prof Brian Ripley
2007-Aug-25 13:24 UTC
[R] How to provide argument when opening RGui from an external application
Look into Rscript.exe (on Windows), which is a flexible way to run scripts. Neither using a GUI nor using source() are recommended. On Fri, 24 Aug 2007, S?bastien wrote:> Dear R-users, > > I have written a small application (in visual basic) that automatically > generate some R scripts. I would like to execute these scripts when my > application is being closed. > My problem is that I don't know how to pass the > 'source(c:/.../myscript.r)' instruction when I programmatically start > RGui. Tinn-R is capable of doing such things, so I guess there must be a > way to pass arguments to RGui. > > Any advice or link to relevant references would be greatly appreciated. > > Sebastien-- 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