jengine                package:rJava                R Documentation

_J_a_v_a _c_a_l_l_b_a_c_k _e_n_g_i_n_e_C_a_s_t _a _J_a_v_a _o_b_j_e_c_t _t_o _a_n_o_t_h_e_r _c_l_a_s_s

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

     '.jengine' obtains the current callback engine or starts it.

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

     .jengine(start=FALSE, silent=FALSE)

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

   start: if set to 'TRUE' then the callback engine is started if it is
          not yet active

  silent: if set to 'TRUE' then NULL is returned if there is no engine
          available. Otherwise an error is raised

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

     '.jengine' can be used to detect whether the engine was started or
     to start the engine.

     Before any callbacks from Java into R can be performed, the Java
     callback engine must be initialized, loading Java/R Interface
     (JRI). If JRI was not started and 'start' is set to 'TRUE' then
     '.jengine' will load necessary classes and start it.

     Note that JRI is an optional part of rJava and requires R shared
     library at the moment. By default rJava will continue with
     installation even if JRI cannot be built.

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

     Returns a Java object reference ('jobjRef') to the current Java
     callback engine.

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

     '.jcall'

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

     ## Not run: 
     .jengine(TRUE)
     ## End(Not run)

