I put a lot of effort into this a long time ago. Since there was little interest and all the abuse from the R cognoscenti was depressing me I gave up on it. As I recall there were some subtle issues involving the initialization of global objects which made the DLL not reentrant. However sometimes things worked and sometimes not.