On 13 December 2017 at 17:30, Jose wrote: | So, the behaviour of RInside may be undefined if the R library does | threading? As is all (embedded) R code (!!), and that is well documented. So "maybe" all you need is a mutex. We can't tell without code. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org