GridR-package {GridR}R Documentation

GridR executes a function on remote Hosts or Cluster.

Description

GridR is an R-Package that submits R functions to execute them on another computer or cluster and it provides an interface to share functions and variables with other users.
Submission modes are using a web service, ssh or local, execution modes are condor, globus or using a single server.
All needed functions and variables that are necessary to execute that function will be copied to the execution machine.

Details

Package: GridR
Type: Package
Version: 0.9.1
Date: 2009-01-30
License: GPL-2

With grid.init(...) GridR is initialized.
The specification of the configuration parameters can be performed with the help of a config file (that is read when the command grid.init() is performed) or at runtime by passing the parameters to the functions grid.init() and grid.apply().
The name of the config file is ".gridr.conf" or "gridr.conf" and it should be placed inside the user home directory or the directory from which R is executed.(see grid.init )

Using grid.apply you can submit a function to be executed in the grid.(see grid.apply)
After execution the result will be copied back.

With grid.share you can share functions and variables with other users on your computer. If you have installed an nfs you can share them with remote users.(see grid.share )

Author(s)

Malte Lohmeyer Dennis Wegener Stefan Rueping

See Also

grid.init grid.apply grid.share grid.enableSharing grid.disableSharing grid.exit grid.printJobs grid.isLocked grid.waitForResult grid.consistency grid.callback grid.check grid.cogMyproxy grid.globusMyproxy grid.proxyInit grid.lock grid.unlock

Examples

a<-function(s){return(2*s)}
#define a function that will be executed remotely
library("GridR")
#load the gridR-Code
grid.init(service="local",debug=FALSE, localTmpDir="GridRTmp/")
#initializes gridR
grid.apply("x",a, 3, wait=TRUE)
#applies function `a` with parameter 3 and writes the result to variable x. until the function is executed, x has a lock.

[Package GridR version 0.9.1 Index]