| Cstack_info {base} | R Documentation |
Report Information on C Stack Size and Usage
Description
Report information on the C stack size and usage (if available).
Usage
Cstack_info()Details
On most platforms, C stack information is recorded whenR isinitialized and used for stack-checking. If this information isunavailable, thesize will be returned asNA, andstack-checking is not performed.
The information on the stack base address is thought to be accurate onWindows, Linux (usingglibc), macOS and FreeBSD but a heuristicis used on other platforms. Because this might be slightlyinaccurate, the current usage could be estimated as negative. (Theheuristic is not used on embedded uses ofR on platforms where thestack base information is not thought to be accurate.)
The ‘evaluation depth’ is the number of nestedR expressionscurrently under evaluation: this has a limit controlled byoptions("expressions").
Value
An integer vector. This has named elements
size | The size of the stack (in bytes), or |
current | The estimated current usage (in bytes), possibly |
direction |
|
eval_depth | The current evaluation depth (including two callsfor the call to |
Examples
Cstack_info()