From simon.urbanek at r-project.org  Mon Jul 16 18:35:08 2007
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Mon, 16 Jul 2007 12:35:08 -0400
Subject: [Rd] How to disable R's C stack checking
In-Reply-To: <dfed1c180707060357y334a8397kd58e0e40b6b1ffed@mail.gmail.com>
References: <dfed1c180707060357y334a8397kd58e0e40b6b1ffed@mail.gmail.com>
Message-ID: <5324F61A-D316-4181-A348-44F1423825E3@r-project.org>


On Jul 6, 2007, at 6:57 AM, Ev Whin wrote:

> Hi all,
>
> I'm developing an application on Mac OS X Darwin which embeds R.
> However, the application always crashes due to the C stack checking.
> I know that R_CStackLimit can be set to -1 to disable the stack
> checking, but I don't know where to put the code "R_CStackLimit=-1".
>

After the call to Rf_initialize_R (and don't forget to define  
CSTACK_DEFNS and include Rinterface.h).

Cheers,
Simon



[Rd] How to disable R's C stack checking
Simon Urbanek