removeDistributedFiles       package:affyPara       R Documentation

_R_e_m_o_v_e _d_i_s_t_r_i_b_u_t_e_d _f_i_l_e_s _f_r_o_m _s_l_a_v_e_s

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

     This function removes distributed files from a special path at the
     disk at all slaves in a computer cluster.

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

     removeDistributedFiles(cluster, path, verbose = FALSE)

     removeFilesSF(path, recursive = TRUE)
     accessFilesSF(path, mode = 0)

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

 cluster: A cluster object obtained from the function makeCluster in
          the 'SNOW' package. 

    path: A 'character' that defines which path (inclusive files)
          should be removed at every slave. 

 verbose: A logical value. If 'TRUE' it writes out some messages.

recursive: A logical value. Should directories be deleted recursively? 

    mode: A integer specifying access mode required. See file.access

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

     This function removes distributed files from a special path at the
     disk at all slaves in a computer cluster.

     For using this function a computer cluster using the 'SNOW'
     package has to be started.

     'removeFilesSF' and 'accessFilesSF' are internal functions which
     will be executed at slaves.

'_r_e_m_o_v_e_F_i_l_e_s_S_F' Slavefunction for deleting the files(s) or directories
     specified by argument 'path'. 

'_a_c_c_e_s_s_F_i_l_e_s_S_F' Slavefunction to access information about files on
     slaves. Function will be used for checks. 

_V_a_l_u_e:

     If 'verbose = TRUE', result of removing (successfully / not
     successfully) will be noticed with a message. 

removeFilesSF: Returns a logical value. 'TRUE' for success. 

accessFilesSF: Returns '0' for success and '1' for failure. 

_A_u_t_h_o_r(_s):

     Markus Schmidberger schmidb@ibe.med.uni-muenchen.de, Ulrich
     Mansmann mansmann@ibe.med.uni-muenchen.de

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

     ## Not run: 
     library(affyPara)

     c1 <- makeCluster(10)

     removeDistributedFiles(c1, "/usr1/tmp/CELfiles", verbose=TRUE)

     stopCluster(c1)
     ## End(Not run)

