nojit                  package:jit                  R Documentation

_I_n_h_i_b_i_t _j_u_s_t-_i_n-_t_i_m_e _c_o_m_p_i_l_a_t_i_o_n _o_f _a _v_a_r_i_a_b_l_e

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

     Inhibit just-in-time compilation of a variable.

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

       nojit(sym = NULL)

_A_r_g_u_m_e_n_t_s:

     sym: the variable 

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

     The JIT compiler will not allow you to change the type or length
     of a jitted variable. Sometimes this can be a nuisance, and if so
     you can use 'nojit(variable)' to inhibit jitting of the specified
     variable.

     Any error message (not necessarily issued by the jitter) disables
     jitting and thus clears all 'nojit' settings i.e. if there is an
     error message you will have to re-'nojit' your variable.

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

     A character vector containing the symbols marked as not jittable,
     if any, else 'NULL'.

_S_e_e _A_l_s_o:

     'jit'
      'is.ra'

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

     ## Not run: 
     jit(1); x <- 0; y <- 0
     nojit(x)         # allows use of "c" below which changes the length of x
     for (i in 1:3) {
         x <- c(x,i)  # will not be jitted
         y <- y + 1   # will be jitted
     }
     nojit(0)
     ## End(Not run)

