getServer                package:nws                R Documentation

_G_e_t _S_e_r_v_e_r _o_b_j_e_c_t

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

     This function returns the server object registered using the
     'setServer' function. If a server object hasn't been registered, a
     default server, will be created and returned.

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

     getServer(..., create=FALSE)

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

     ...: currently ignored.

  create: used to force a new server to be created and registered, even
          if there already is one.

_N_o_t_e:

     This function is primarily used within the nws package in to order
     to ease object creation and specify an ad-hoc server setup with
     ease. If the function is called before a call to 'setServer' has
     been made, it will create, store, and return a 'managedServerInfo'
     object created with the default options.

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

     'setServer'

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

     ## Not run: 
     hostname <- nwsHost(getServer())
     ## End(Not run)

