Cstack_info               package:base               R Documentation

_R_e_p_o_r_t _I_n_f_o_r_m_a_t_i_o_n _o_n _C _S_t_a_c_k _S_i_z_e _a_n_d _U_s_a_g_e

_D_e_s_c_r_i_p_t_i_o_n:

     Report information on the C stack size and usage (if available).

_U_s_a_g_e:

     Cstack_info()

_D_e_t_a_i_l_s:

     On most platforms, C stack information is recorded when R is
     initialized and used for stack-checking.  If this information is
     unavailable, the 'size' will be returned as 'NA', and
     stack-checking is not performed.

     The information on the stack base address is thought to be
     accurate on Windows, Linux and FreeBSD (including MacOS X), but a
     heuristic is used on other platforms.  Because this might be
     slightly inaccurate, the current usage could be estimated as
     negative.  (The heuristic is not used on embedded uses of R on
     platforms where the stack base is not thought to be accurate.)

_V_a_l_u_e:

     An integer vector.  This has named elements 

    size: The size of the stack (in bytes), or 'NA' if unknown.

 current: The estimated current usage (in bytes), possibly 'NA'.

direction: '1' (stack grows down, the usual case) or '-1' (stack grows
          up).

eval_depth: The current evaluation depth (including two calls for the
          call to 'Cstack_info').

_E_x_a_m_p_l_e_s:

     Cstack_info()

