[R] RSPerl & threads II

From: J Greenbaum <jgbaum_at_gmail.com>
Date: Tue, 08 Apr 2008 09:46:16 -0700


My previous post seems to have been eaten by the server because of embedded code. You can now find that code at:

http://tinyurl.com/3o88j2

I aoplogize for the double-posting...

-Jay

Hi all,

I'm trying to use the RSPerl module in a script that uses threads. I am able to call R functions without a problem when I don't use threads. However, using threads, I get varying errors depending on how I call the R functions. If I call the R::initR function in the "boss" thread and then try to call R functions from a "worker" thread, I get the following error:

Error: C stack usage is too close to the limit Caught error in R::call()

However, if I move the "use" declarations for R & RReferences to the worker thread, along with the initR call, I get this:

Fatal error: R home directory is not defined

I've attached some code for your reference. Is there any way to get this module working with Perl threads? Thanks in advance for your help.

-Jay



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 08 Apr 2008 - 16:48:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Apr 2008 - 17:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive