setSleigh                package:nws                R Documentation

_S_e_t _S_l_e_i_g_h _o_b_j_e_c_t

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

     This function registers the specified sleigh object. It can be
     accessed later using the 'getSleigh' function.

_N_o_t_e:

     This function is useful in conjunction with packages that get
     their default sleigh objects using the 'getSleigh' function. It
     allows users to create special sleigh objects that will be used by
     any packages that get sleigh objects using the 'getSleigh'
     function.

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

     'getSleigh', 'sleigh'

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

     ## Not run: 
     setSleigh(sleigh(workerCount=2))
     s <- getSleigh()
     eachWorker(s, function() SleighRank)
     ## End(Not run)

