close                  package:nws                  R Documentation

_n_w_s_S_e_r_v_e_r, _s_l_e_i_g_h _C_l_a_s_s _M_e_t_h_o_d

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

     Depends on the first argument type passed to the close function,
     it behaves differently. If the first argument is a sleigh object,
     then close function calls stopSleigh to shutdown the sleigh
     workers and delete the sleigh workspace.  If the first argument is
     a nwsServer object, then the connection to the netWorkSpace server
     is closed.

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

     ## S4 method for signature 'nwsServer':
     close(con, ...)
     ## S4 method for signature 'sleigh':
     close(con, ...)

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

     con: a sleigh class object or a nwsServer class object

     ...: optional fields

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

     The optional fields are not passed to stopSleigh method.  They are
     defined to be compatible with the default, non-generic close
     method.

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

     ## Not run: 
     s = sleigh()
     close(s)

     wss = nwsServer()
     close(wss)
     ## End(Not run)

