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