nice                  package:nice                  R Documentation

_G_e_t _o_r _S_e_t _U_N_I_X _P_r_i_o_r_i_t_y

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

     Get or Set UNIX Priority (Niceness) of this R process.

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

     get.my.priority()
     set.my.priority(priority = 15)

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

priority: The UNIX priority, also called niceness, what the UNIX
          commands 'nice' and 'renice' set, (an integer number, usually
          in the range -20 to 19, that we want to set the priority to).
           Generally, ordinary users can only raise the priority, so it
          is an error to try to set the priority lower than that
          returned by 'get.my.priority'.

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

     Sets the priority of itself, the unix process that is executing
     this R code.  The command was written for use with the 'snow'
     package (for nicing slaves), using syntax something like


       invisible(clusterEvalQ(cl, set.my.priority()))

     assuming a cluster 'cl' has already been set up.  It may also be
     useful in other situations.

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

     'get.my.priority' returns the priority. 'set.my.priority' returns
     no value.  It has the side effect of setting the priority.

