From simon.urbanek at r-project.org  Fri Jun  1 14:59:56 2007
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Fri, 1 Jun 2007 08:59:56 -0400
Subject: [Rd] Question on the R's C stack limit
In-Reply-To: <dfed1c180706010244g4dc0c55fg4d86c9c21504ab3e@mail.gmail.com>
References: <dfed1c180706010244g4dc0c55fg4d86c9c21504ab3e@mail.gmail.com>
Message-ID: <5D84AF01-69E5-4471-A8B1-F7D061B5D846@r-project.org>

On Jun 1, 2007, at 5:44 AM, Ev Whin wrote:

> Dear r-devel members,
>     I encountered a C stack limit issue, when I tried to embed R  
> 2.5 into my
> application.

If you are embedding R, you can change or disable the stack limit by  
setting R_CStackLimit appropriately. There is no need to change the R  
source code.

Cheers,
Simon



> In the R-exts document, it says:"Note that R's own front ends
> use a stack size of 10Mb". I desire to know: is it possible to  
> decrease this
> stack size
> by modifying R's source code? If it's possible, which part of the  
> source
> code is responsible for the issue?
>
> Thank you all.
>



[Rd] Question on the R's C stack limit
Simon Urbanek