Re: [R] How to provide argument when opening RGui from an external application
Thanks everyone. I actually thought about ?Rscript.exe but, having used only Rgui, I thought it was a instruction specific to this interface. I will look into it. Sebastien Gabor Grothendieck a écrit : > There are also some batch files that can be used with Rscript on XP and info > in the README here: > >http://batchfiles.googlecode.com > > > On 8/26/07, Sébastien <[EMAIL PROTECTED]> wrote: > >> Thanks for your reply. >> When you say "look into Rscript.exe", do you have a specific document in >> mind ? I tried to google it but could not find much... I forgot to >> mention in my first email that I am working under the Windows XP >> environment. >> >> Prof Brian Ripley a écrit : >> >>> 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 >> __ >> R-help@stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> >> > > > [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to provide argument when opening RGui from an external application
On Sun, 26 Aug 2007, Duncan Murdoch wrote: On 26/08/2007 7:14 AM, Sébastien wrote: Thanks for your reply. When you say "look into Rscript.exe", do you have a specific document in mind ? I tried to google it but could not find much... I forgot to mention in my first email that I am working under the Windows XP environment. You could try ?Rscript within R, or Rscript --help from the command line (assuming you have R's bin directory on your path. Or read 'An Introduction to R'. Duncan Murdoch Prof Brian Ripley a écrit : 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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595__ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to provide argument when opening RGui from an external application
There are also some batch files that can be used with Rscript on XP and info in the README here: http://batchfiles.googlecode.com On 8/26/07, Sébastien <[EMAIL PROTECTED]> wrote: > Thanks for your reply. > When you say "look into Rscript.exe", do you have a specific document in > mind ? I tried to google it but could not find much... I forgot to > mention in my first email that I am working under the Windows XP > environment. > > Prof Brian Ripley a écrit : > > 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 > > > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to provide argument when opening RGui from an external application
On 26/08/2007 7:14 AM, Sébastien wrote: > Thanks for your reply. > When you say "look into Rscript.exe", do you have a specific document in > mind ? I tried to google it but could not find much... I forgot to > mention in my first email that I am working under the Windows XP > environment. You could try ?Rscript within R, or Rscript --help from the command line (assuming you have R's bin directory on your path. Duncan Murdoch > > Prof Brian Ripley a écrit : >> 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 > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to provide argument when opening RGui from an external application
Thanks for your reply. When you say "look into Rscript.exe", do you have a specific document in mind ? I tried to google it but could not find much... I forgot to mention in my first email that I am working under the Windows XP environment. Prof Brian Ripley a écrit : > 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 > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [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, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595__ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.