Re: [Rd] Controlling stdin and stdout in an embedded R instance

2011-06-22 Thread Mike Sonsini
Thank you, this example helped. Mike Sonsini On 6/17/2011 10:29 AM, Simon Urbanek wrote: Mike, there are many examples of embedding R, one of them is rJava/JRI and you can see how to initialize R with custom callbacks at http://svn.rforge.net/org/trunk/rosuda/JRI/src/Rinit.c Cheers, Simon

Re: [Rd] Controlling stdin and stdout in an embedded R instance

2011-06-17 Thread Dirk Eddelbuettel
On 16 June 2011 at 18:47, Mike Sonsini wrote: | Hello, | | I am very new to R but my question is with respect to the C API for | working with an embedded R console. I have been able to start and stop | an embedded R console from within a C program as well as use the API to | execute commands i

Re: [Rd] Controlling stdin and stdout in an embedded R instance

2011-06-17 Thread Simon Urbanek
Mike, there are many examples of embedding R, one of them is rJava/JRI and you can see how to initialize R with custom callbacks at http://svn.rforge.net/org/trunk/rosuda/JRI/src/Rinit.c Cheers, Simon On Jun 16, 2011, at 6:47 PM, Mike Sonsini wrote: > Hello, > > I am very new to R but my qu

Re: [Rd] Controlling stdin and stdout in an embedded R instance

2011-06-17 Thread oliver
Hello, I'm new in exploring R-internals, and also did not explored embedding R into C. I did some C-extensions for packages so far. Nevertheless I can give you a hint, which might be helpful; the example which you linked to, uses R.dll. DLL means: Dynamic linked library. On Unix and Linux the ae

[Rd] Controlling stdin and stdout in an embedded R instance

2011-06-16 Thread Mike Sonsini
Hello, I am very new to R but my question is with respect to the C API for working with an embedded R console. I have been able to start and stop an embedded R console from within a C program as well as use the API to execute commands in it. I am seeking a mechanism to individually send nativ