nwsMktempWs-methods           package:nws           R Documentation

_n_w_s_S_e_r_v_e_r _c_l_a_s_s _m_e_t_h_o_d

_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)

