removeDistributedFiles: Remove distributed files from slaves

Description Usage Arguments Details Value Author(s) Examples

View source: R/removeDistributedFiles.R

Description

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

Usage

1
removeDistributedFiles(path=tempdir(), cluster, master=TRUE, verbose = getOption("verbose"))

Arguments

path

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

cluster

A cluster object obtained from the function makeCluster in the SNOW package. For default .affyParaInternalEnv$cl will be used.

master

A logical value. If TRUE the files will be removed from the master. default: TRUE

verbose

A logical value. If TRUE it writes out some messages. default: getOption("verbose")

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. Starting the cluster with the command makeCluster generates an cluster object in the affyPara environment (.affyParaInternalEnv) and no cluster object in the global environment. The cluster object in the affyPara environment will be used as default cluster object, therefore no more cluster object handling is required. The makeXXXcluster functions from the package SNOW can be used to create an cluster object in the global environment and to use it for the preprocessing functions.

Value

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

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(affyPara)

makeCluster(10)

removeDistributedFiles(verbose=TRUE)

stopCluster()

## End(Not run)

affyPara documentation built on Nov. 8, 2020, 11:08 p.m.