Re: [Rcpp-devel] RInside and multi-threading

2012-02-11 Thread Dirk Eddelbuettel
On 12 February 2012 at 11:47, Darren Cook wrote: | I think the correct approach for R is to have a single global instance | (or on the stack in main()) (e.g. [1]). | | If your application is multi-threaded, what extra steps do you need to | take? Does every call to the RInside object have to be p

[Rcpp-devel] RInside and multi-threading

2012-02-11 Thread Darren Cook
I think the correct approach for R is to have a single global instance (or on the stack in main()) (e.g. [1]). If your application is multi-threaded, what extra steps do you need to take? Does every call to the RInside object have to be protected by a mutex? Or, I wonder if some read-only accesses

Re: [Rcpp-devel] how to get rid of the warning message: no graphics system to unregister

2012-02-11 Thread Darren Cook
> I am calling a R function through Rcpp and RInside in my c++ program > in Linux. There are a lot of warning messages saying "no graphics > system to unregister" ...Is there anyone who knows the reason and how > to avoid the printing of such warning messages? Generally, once you track down the l