nwsMktempWs               package:nws               R Documentation

_C_r_e_a_t_e _a _T_e_m_p_o_r_a_r_y _n_e_t_W_o_r_k_S_p_a_c_e

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

     Create a unique temporary netWorkSpace using the template string.

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

     ## S4 method for signature 'nwsServer':
     nwsMktempWs(.Object, wsNameTemplate)

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

 .Object: a nwsServer class object

wsNameTemplate: template for the netWorkSpace name

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

     'nwsMktempWs(nwss, wsNameTemplate)' returns the name of a
     temporary space created on the netWorkSpaces server. The template
     should contain a '%d'-like construct which will be replaced by a
     serial counter maintained by the server to generate a unique new
     netWorkSpace name. The user must then invoke 'nwsOpenWs' or
     'nwsUseWs' with this name to create  an object to acceess this
     workspace.  WsNameTemplate defaults to '__Rws__%010d'.

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

     ## Not run: 
     s <- nwsServer()
     tempWsName <- nwsMktempWs(s, 'temp_%d')
     ws <- nwsOpenWs(s, tempWsName)
     ## End(Not run)

