affy (version 1.50.0)

removeDistributedFiles: 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(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")

Value

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

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.

Examples

Run this code
library(affyPara)

makeCluster(10)

removeDistributedFiles(verbose=TRUE)

stopCluster()

Run the code above in your browser using DataCamp Workspace