Re: [R] R script to start session (without automatically finishing)

2008-01-04 Thread Philipp Fechteler
Hello again I think now I can refine my problem: I want to run R scripts non-interactively in batch-mode or invoked in Perl scripts, with interactive rgl windows (responding to my mouse actions). Ideally the R script finishes when I close the rgl window and executes some last commands in the

Re: [R] R script to start session (without automatically finishing)

2008-01-04 Thread Prof Brian Ripley
I suggest you consult the source code, specifically src/unix/system.c and src/unix/sys-std.c. interactive() reports the value of the C-level variable R_Interactive, and standard Unix-alike R runs an event loop only if that is true. I suspect RGL is relying on that event loop, but reading its

Re: [R] R script to start session (without automatically finishing)

2008-01-03 Thread Philipp Fechteler
Hello Mr Ripley Prof Brian Ripley wrote: So you have to write a script that will not terminate until you 'press a button or something like this'. That's easy to do, but as you haven't told us your OS. E.g. on Windows, call winDialogString at the end. Thank you for helping. I am running

Re: [R] R script to start session (without automatically finishing)

2008-01-03 Thread Prof Brian Ripley
On Thu, 3 Jan 2008, Philipp Fechteler wrote: Hello Mr Ripley Prof Brian Ripley wrote: So you have to write a script that will not terminate until you 'press a button or something like this'. That's easy to do, but as you haven't told us your OS. E.g. on Windows, call winDialogString at

Re: [R] R script to start session (without automatically finishing)

2008-01-03 Thread Philipp Fechteler
Prof Brian Ripley wrote: On Thu, 3 Jan 2008, Philipp Fechteler wrote: Hello Mr Ripley Prof Brian Ripley wrote: So you have to write a script that will not terminate until you 'press a button or something like this'. That's easy to do, but as you haven't told us your OS. E.g. on

[R] R script to start session (without automatically finishing)

2007-12-21 Thread Philipp Fechteler
Hello R friends I am quite impressed by the power of R, I am using it only since some weeks now. But its visualizing capabilities are outstanding! But one thing I couldn't solve: I have programs producing lots of data, most times 3D. In R I am using the library rgl to visualize nicely the 3D

Re: [R] R script to start session (without automatically finishing)

2007-12-21 Thread Prof Brian Ripley
So you have to write a script that will not terminate until you 'press a button or something like this'. That's easy to do, but as you haven't told us your OS. E.g. on Windows, call winDialogString at the end. On Fri, 21 Dec 2007, Philipp Fechteler wrote: Hello R friends I am quite