removeDistributedFiles {affyPara}R Documentation

Remove distributed files from slaves

Description

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

Usage

removeDistributedFiles(cluster, path, verbose = FALSE)

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

Arguments

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

Details

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.

removeFilesSF
Slavefunction for deleting the files(s) or directories specified by argument path.
accessFilesSF
Slavefunction to access information about files on slaves. Function will be used for checks.

Value

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.

Author(s)

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

Examples

## Not run: 
library(affyPara)

c1 <- makeCluster(10)

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

stopCluster(c1)
## End(Not run)

[Package affyPara version 1.0.0 Index]